-
Notifications
You must be signed in to change notification settings - Fork 2
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
Matching historical
and sspXYZ
using df
with incomplete columns make the historical period disappear
#286
Comments
The problem is the missing Line 1240 in 2638723
historical in activity CMIP and sspXYZ , in ScenarioMIP ).
Maybe we could throw a warning if necessary columns are not filled? |
I see. I had the impression that the "experiment" column would be used in this way. I think a warning would be good maybe yes, because I would characterize this as a silent failure otherwise. Then again, if my use case is just not the intended way to work with these tools, feel free to ignore this issue. |
Both colums are used (activity and experiment). |
I can't remember the reason we explicitly skip np.NaN as the |
I don't remember either... |
Setup Information
Description
I parse a local directory to create a
df
. The following fields:are unspecified, which causes the historical period to disappear when I proceed to make a catalog that matches
hist
andfut
.Steps To Reproduce
The elements in
ds_dict
only contain the historical period when I fill the fields specified above. Otherwise, the historical period is ignored.If I remove
match_hist_and_fut=True
, the historical periods remain, and they're separated. I checked and bothsspXYZ
andhistorical
have[None,None,None]
for the 3 specified fields, so it doesn't seem to be because of mismatching fields, but really the presence ofNone
rather than some random string that makes the difference.Additional context
No response
Contribution
The text was updated successfully, but these errors were encountered: