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

Unwarranted, panic-inducing error message in Series.bin() #395

Closed
CommonClimate opened this issue Apr 21, 2023 · 1 comment
Closed

Unwarranted, panic-inducing error message in Series.bin() #395

CommonClimate opened this issue Apr 21, 2023 · 1 comment

Comments

@CommonClimate
Copy link
Collaborator

Describe the bug
When specifying a bin_size argument in ts.bin(), one gets the message:
UserWarning: The step, time axis, or bin edges have been set, the series may not be evenly_spaced

To Reproduce

ts = pyleo.utils.load_dataset('EDC-dD')
ts.bin(bin_size=5).plot()

Expected behavior
The warning should appear only if no_nans = True and is_evenly_spaced = False. Also, the behavior of gkernel should be identical (verify that interp doesn't need such treament)

@CommonClimate
Copy link
Collaborator Author

addressed by #399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants