-
Notifications
You must be signed in to change notification settings - Fork 33
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
implement pyleo.Series.resample #303
Changes from 4 commits
dff78f1
67e1c31
8ce478e
c3cb29c
00bce0f
d5aa312
7363ec9
45c8e92
744860d
ebcd7af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
environment.yml merge=ours | ||
*.py diff=python | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ def time_unit_to_datum_exp_dir(time_unit, time_name=None): | |
exponent = 9 | ||
direction = 'retrograde' | ||
else: | ||
warnings.warn(f'Time unit {time_unit} not recognized. Defaulting to years CE') | ||
warnings.warn(f'Time unit {time_unit} not recognized. Defaulting to years CE', stacklevel=4) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is so that the warning will point to the user's code, rather than to the line of code within pyleoclim which raises the warning There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. That is useful as this warning was cropping up constantly on my end due to my inadequate parsing of units (now fixed). I could make sense of it because I know the code, but this should help other users figure out what's happening on their end. |
||
|
||
# deal with statements about datum/direction | ||
tu = time_unit.lower().strip('.') # make lowercase + strip stops, so "B.P." --> "bp" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was just to allow
git log
to work with Python functions