-
Notifications
You must be signed in to change notification settings - Fork 53
Fix future warning from xarray #281
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
Conversation
A potential future problem I noticed in the process of testing #280 under python 3 (because I'm spending a lot of time in the log files). @milenaveneziani, a quick check to make sure you don't see any future warnings in the log files when NetCDF files get written out (e.g. during remapping) would be all that this would need. And obviously it would be good to make sure it doesn't break anything, but I don't expect any trouble since it passed my usual QU240 test. |
@vanroekel, is this a PR you would have time to test for me? @milenaveneziani has quite a bit on her plate right now on the A-Prime side. If not, no problem. Just say so. |
@xylar sure I can test this. Do you have steps to reproduce the warning with develop? I tried on titan just now and don't see any warnings about x-array. There is a numpy warning about masked arrays. Do I need to be using the new e3sm conda environment? I'm guessing that the default environment (acme) doesn't have python 3. |
@vanroekel, you don't need to check with python 3 but presumably you do need to check with the latest e3sm-unified environment, which is currently only available on Edison (module load e3sm-unified/1.1.2-py2-nox) or acme1. Or you can install the required libraries listed in the MPAS-Analysis documentation into a new anaconda environment of your own, in which case you should get new enough versions of numpy, xarray, etc. that you should see the issue. |
@xylar I am unable to reproduce the future warning. It looks like this is because I can't get xarray v0.10. On all machines, including the environment you reference (e3sm-unified) xarray is version 0.9.6. If I do |
I can’t explain it, then. I must be getting the future warnings in 0.9.6.
Could it be that you’re simply not looking in the right log files? I’ll
double check tomorrow but I’m sure I saw the warning again today on my
laptop.
…On Mon, Dec 4, 2017 at 10:44 PM Luke Van Roekel ***@***.***> wrote:
@xylar <https://github.com/xylar> I am unable to reproduce the future
warning. It looks like this is because I can't get xarray v0.10. On all
machines, including the environment you reference (e3sm-unified) xarray is
version 0.9.6. If I do conda update -c conda-forge xarray I still get
xarray 0.9.6. Any suggestions on how to update to v0.10?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#281 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD_EeGS84eoTMG5jM_WfpRsOQBX9yCeLks5s9Ge_gaJpZM4Qu6qg>
.
|
I did
but these seem unrelated. When you have a chance tomorrow, could you post the text of the warning that you see? |
Sorry, @vanroekel. It does seem like I'm seeing this with xarray 0.10.0 on my personal laptop and not on Edison as I thought. I see the same warning more often in python 3 than in python 2 but I see it in both. I will set up a python 3 environment on Edison with xarray 0.10.0. |
@vanroekel, if you could do the following:
you should be able to run with the python 3 environment I'm setting up right now. I would suggest running with this config file: |
1a9921f
to
7e8ce32
Compare
Iterating over data sets will no longer iterate over coordinates in addition to data variables. We want both when we write out NetCDF files, so we switch to doing so explicitly.
7e8ce32
to
c327cea
Compare
@vanroekel, I also had to rebase and make a small fix to this PR to make it work with python 3, so please update your local branch. |
TestingI can confirm that I see the warnings with |
@xylar I just tried the python environment from your comment and get permission denied errors
|
@vanroekel, sorry about that. Could you try again? |
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.
Great, sorry this was so much more trouble to test than it should have been. But it was helpful in the end since I fixed a python 3 problem in the process and set up some environments for testing that should be helpful in the future. |
Iterating over data sets will no longer iterate over coordinates in addition to data variables. We want both when we write out NetCDF files, so we switch to doing so explicitly.