Skip to content

Commit

Permalink
Update hyperit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EdoardoChidichimo authored Jun 24, 2024
1 parent 9f9e25b commit 3776601
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hyperit/hyperit.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def __setup_matrix(self) -> None:

self._it_matrix = np.zeros((1, self._loop_range, self._loop_range, 16)) if self._epoch_average else np.zeros((self._n_epo, self._loop_range, self._loop_range, 16))

def __initialise_estimator(self, s1: np.ndarray, s2: np.ndarray) -> None:
def __initialise_estimator(self) -> None:

if not self._initialise_parameter:
self._Calc.initialise()
Expand All @@ -502,10 +502,6 @@ def __initialise_estimator(self, s1: np.ndarray, s2: np.ndarray) -> None:
if self._estimator == 'symbolic': # symbolic estimator takes only one argument so cannot be unrolled.
self._Calc.initialise(self._initialise_parameter)
return

# self._Calc.initialise(1, 1, *self._initialise_parameter)
self._Calc.initialise()
return

self._Calc.initialise(*self._initialise_parameter)

Expand Down

0 comments on commit 3776601

Please sign in to comment.