Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintenance #52

Merged
merged 4 commits into from
Nov 18, 2024
Merged

Maintenance #52

merged 4 commits into from
Nov 18, 2024

Conversation

Kirill888
Copy link
Collaborator

@Kirill888 Kirill888 commented Nov 18, 2024

  • bump actions
  • fix "possibly uninitialized" trend variable
  • switch from numpy.round_ to numpy.round to support numpy 2
  • bump mypy config to 3.10 as our default dev env is 3.10 and some libs in there don't support 3.8 anymore

@@ -232,7 +232,7 @@ def gammastd_yxt(
s = gammastd(xt, nodata, cal_start, cal_stop)
if (s != nodata).sum() > 0:
s = s * 1000
np.round_(s, 0, s)
np.round(s, 0, s)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that equivalent? I don't remember why I was going with round_, but I think it was memory related

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in numpy 1.26 it is:

return around(a, decimals=decimals, out=out)

and then around and round, both are

return _wrapfunc(a, 'round', decimals=decimals, out=out)
return _wrapfunc(a, 'round', decimals=decimals, out=out)

@Kirill888 Kirill888 merged commit a189b8f into main Nov 18, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants