-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fixes to python test environment #58
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
=======================================
Coverage 78.30% 78.30%
=======================================
Files 14 14
Lines 1549 1549
=======================================
Hits 1213 1213
Misses 336 336
Flags with carried forward coverage won't be shown. Click here to find out more. |
dsi_clouds = tools.get_models('0') | ||
tmp = np.ones((len(dsi_clouds['time']), len(dsi_clouds['lat']), | ||
len(dsi_clouds['lon']), len(dsi_clouds['Z_l']))) | ||
dsi_clouds['ClAb'] = (('time', 'lat', 'lon', 'Z_l'), tmp*1e-5) | ||
dsi_clouds['ClDs'] = (('time', 'lat', 'lon', 'Z_l'), tmp*1e2) | ||
dsi_clouds['ClDr'] = (('time', 'lat', 'lon', 'Z_l'), tmp*1e3) | ||
dsi_clouds['ClVf_Test1[s]'] = (('time', 'lat', 'lon', 'Z_l'), tmp*0.5) | ||
dsi_clouds['ClVf_Test2[s]'] = (('time', 'lat', 'lon', 'Z_l'), tmp*0.5) | ||
tools._replace_model('0', dsi_clouds) | ||
dsi_clouds = tools.get_models("0") | ||
tmp = np.ones( | ||
( | ||
len(dsi_clouds["time"]), | ||
len(dsi_clouds["lat"]), | ||
len(dsi_clouds["lon"]), | ||
len(dsi_clouds["Z"]), | ||
) | ||
) | ||
dsi_clouds["ClAb"] = (("time", "lat", "lon", "Z"), tmp * 1e-5) | ||
dsi_clouds["ClDs"] = (("time", "lat", "lon", "Z"), tmp * 1e2) | ||
dsi_clouds["ClDr"] = (("time", "lat", "lon", "Z"), tmp * 1e3) | ||
dsi_clouds["ClVf_Test1[s]"] = (("time", "lat", "lon", "Z"), tmp * 0.5) | ||
dsi_clouds["ClVf_Test2[s]"] = (("time", "lat", "lon", "Z"), tmp * 0.5) | ||
tools._replace_model("0", dsi_clouds) |
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.
@Kiefersv, could you comment on these changes I had to make? I think the Z_l here is strange?!
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.
I double checked and you are indeed right that it should be Z. No idea why it worked before with Z_l. Did this cause the problems?
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.
No. Its likely problems related to xarray's master branch. But this looked odd to me.
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.
Changes look fine, just the xarray test that still fails.
No description provided.