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

Standardize parameter names #178

Merged
merged 16 commits into from
Jul 28, 2023
Merged

Conversation

bdestombe
Copy link
Collaborator

See #159

…function.

The resample function from dtscalibration was blocking the ability to upgrade to recent versions of xarray and pandas. Resampling using the xarray functions is now proposed, see example notebook 2. See #167
New versions of pandas don't support the squeeze argument
@bdestombe
Copy link
Collaborator Author

Merge #177 first

Copy link
Collaborator

@BSchilperoort BSchilperoort left a comment

Choose a reason for hiding this comment

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

Nice! This makes the functions a lot easier. -330 lines as well :)

Don't forget the changelog 😉

T_dalpha_fw=-self.x * (tmpf ** 2) / self[store_gamma],
T_alpha_fw=-(tmpf ** 2) / self[store_gamma],
T_ta_fw=-(tmpf ** 2) / self[store_gamma],
T_gamma_fw=tmpf / self.gamma,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
T_gamma_fw=tmpf / self.gamma,
T_gamma_fw=tmpf / self["gamma"]

I prefer always accessing xarray variables using the ["var"] syntax, this ensures no conflicts with builtin methods etc.

@bdestombe bdestombe marked this pull request as ready for review July 28, 2023 07:11
@bdestombe bdestombe merged commit eaa8857 into main Jul 28, 2023
8 checks passed
@bdestombe bdestombe deleted the reduce-freedom-in-parameter-naming branch July 28, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants