Skip to content

Commit

Permalink
remove int cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilo9999 committed Mar 3, 2024
1 parent 18c665d commit 8988ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def set_parameters(self, par_dict, verbose=False):
if len(var_seeds) > 2:
raise ValueError("Dimensions larger than 2 not supported")

self.nwalkers = int(var_seeds[0].size * var_seeds[1].size)
self.nwalkers = var_seeds[0].size * var_seeds[1].size

pxx, pyy = np.meshgrid(var_seeds[0], var_seeds[1])
self.seeds = np.vstack([pxx.flatten(), pyy.flatten()]).T
Expand All @@ -223,7 +223,7 @@ def sample(
):

fitting_args, fitting_kargs = self.fitting_args, self.fitting_kargs
# TODO: this funciton throws an error in CI. The nan_policy='omit' policiy was added to avoid this issue
# TODO: this function throws an error in CI. The nan_policy='omit' policy was added to avoid this issue
# according to the guidelines in https://lmfit.github.io/lmfit-py/faq.html#i-get-errors-from-nan-in-my-fit-what-can-i-do
self.fitter = self.LM.minimize(
self.objective_func,
Expand Down

0 comments on commit 8988ae7

Please sign in to comment.