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

Fixes to python test environment #58

Merged
merged 10 commits into from
Oct 27, 2023
Merged

Fixes to python test environment #58

merged 10 commits into from
Oct 27, 2023

Conversation

AaronDavidSchneider
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #58 (3f8210f) into main (7c073a8) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   78.30%   78.30%           
=======================================
  Files          14       14           
  Lines        1549     1549           
=======================================
  Hits         1213     1213           
  Misses        336      336           
Flag Coverage Δ
unittests 78.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Comment on lines -46 to +60
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)
Copy link
Contributor Author

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?!

Copy link
Collaborator

@Kiefersv Kiefersv Oct 27, 2023

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

@Kiefersv Kiefersv left a 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.

@Kiefersv Kiefersv merged commit d462282 into main Oct 27, 2023
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants