-
Notifications
You must be signed in to change notification settings - Fork 13
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
Remove datetime workaround logic #273
Changes from 14 commits
fb92854
2f93cd8
f941ebc
cbfe56a
a1e298c
6a704a6
58d5e24
55ad48c
45304f7
72494b1
9166056
36e020b
c9d3aad
f4dd4da
5f8d556
6eee1e8
b625714
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from datetime import datetime | ||
import os | ||
|
||
from cftime import DatetimeNoLeap | ||
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 means we'll need to add 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. Good catch. |
||
|
||
from aospy import Proj, Model, Run, Var, Region | ||
from aospy.data_loader import NestedDictDataLoader | ||
|
||
|
@@ -25,8 +26,8 @@ def total_precipitation(convection_rain, condensation_rain): | |
'Control simulation of the idealized moist model' | ||
), | ||
data_loader=NestedDictDataLoader(file_map), | ||
default_start_date=datetime(4, 1, 1), | ||
default_end_date=datetime(6, 12, 31) | ||
default_start_date=DatetimeNoLeap(4, 1, 1), | ||
default_end_date=DatetimeNoLeap(6, 12, 31) | ||
) | ||
|
||
example_model = Model( | ||
|
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.
Update docstring now that only
ds
is returned