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

Warning from numpy1.9.0 in ESMP_API.py and avariable.py #576

Open
durack1 opened this issue Aug 26, 2014 · 14 comments
Open

Warning from numpy1.9.0 in ESMP_API.py and avariable.py #576

durack1 opened this issue Aug 26, 2014 · 14 comments
Assignees

Comments

@durack1
Copy link
Member

durack1 commented Aug 26, 2014

[durack1@oceanonly 140115_PeterGleckler]$ /usr/local/uvcdat/2014-07-21/bin/python
Python 2.7.7 (default, Jul 21 2014, 15:49:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import numpy
numpy.version.version
'1.9.0b1'

/usr/local/uvcdat/2014-07-21/lib/python2.7/site-packages/ESMP/src/ESMP_API.py:1241: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  if (srcMaskValues != None):

and same file another line:

/usr/local/uvcdat/2014-08-22/lib/python2.7/site-packages/ESMP/src/ESMP_API.py:1248: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  if (dstMaskValues != None):
@durack1
Copy link
Member Author

durack1 commented Aug 26, 2014

This is also occurring:

/usr/local/uvcdat/2014-08-22/lib/python2.7/site-packages/cdms2/avariable.py:1146: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
  elif numpy.newaxis in specs:

[durack1@oceanonly 140115_PeterGleckler]$ source /usr/local/uvcdat/2014-08-22/bin/setup_runtime.csh1
[durack1@oceanonly 140115_PeterGleckler]$ which python
/usr/local/uvcdat/2014-08-22/bin/python
[durack1@oceanonly 140115_PeterGleckler]$ python
Python 2.7.7 (default, Aug 22 2014, 15:52:04)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import numpy
numpy.version.version
'1.9.0b1'

@durack1 durack1 changed the title Warning from numpy1.9.x in ESMP_API.py regrid call - likely needs code change in future release Warning from numpy1.9.x in ESMP_API.py and avariable.py Aug 26, 2014
@durack1
Copy link
Member Author

durack1 commented Sep 28, 2014

Folks, FYI regarding ESMP warnings:

-----Original Message-----
From: Ryan OKuinghttons
Date: Friday, September 26, 2014 at 6:08 PM
To: "Paul J. Durack"
Cc: Support esmf_support
Subject: 3613640 Re: [esmf_support] ESMP and numpy 1.9.0

Hi Paul,

Nice to hear from the UV-CDAT team, I hope everything is going well.

I actually made this modification a while back. It is in the development version but has not yet made it into an official release. I can send you a snapshot with this mod in there if you’d like, just let me know. Otherwise, the next release is expected sometime around the end of the year. Is there a UV-CDAT release date that I should be aware of that you are targeting for this?

I feel like someone at UV-CDAT sent me a message about this error a while back, but I just can’t remember. Regardless, thanks for bringing this up!

Ryan

On Sep 16, 2014, at 4:16 PM, Durack, Paul J. wrote:

Hi there folks,
We¹ve recently been building python2.7.7 with numpy 1.9.0 and it appears
some behaviors have been changing in ESMP.
I get the following warnings, which weren¹t appearing when using the older
numpy 1.7.1.
/export/durack1/140916_pcmdi_metrics/PCMDI_METRICS/lib/python2.7/site-packa
ges/ESMP/src/ESMP_API.py:1241: FutureWarning: comparison to None will
result in an elementwise object comparison in the future.
if (srcMaskValues != None):
/export/durack1/140916_pcmdi_metrics/PCMDI_METRICS/lib/python2.7/site-packa
ges/ESMP/src/ESMP_API.py:1248: FutureWarning: comparison to None will
result in an elementwise object comparison in the future.
if (dstMaskValues != None):
Happy to provide more diagnostics if required.
Cheers,
P


esmf_support mailing list
esmf_support@list.woc.noaa.gov
https://list.woc.noaa.gov/cgi-bin/mailman/listinfo/esmf_support

@durack1
Copy link
Member Author

durack1 commented Sep 28, 2014

@aashish24 as the next ESMP release is scheduled for end of year, might be a good idea to set this as a 2.1 milestone..

@durack1 durack1 changed the title Warning from numpy1.9.x in ESMP_API.py and avariable.py Warning from numpy1.9.0 in ESMP_API.py and avariable.py Sep 28, 2014
@durack1
Copy link
Member Author

durack1 commented Nov 24, 2014

This will likely involve testing of the ESMF 7.0.0 release and is related to #819 - @doutriaux1 @aashish24 can you mark this as a 2.2 milestone please?

@doutriaux1 doutriaux1 added this to the 2.2 milestone Nov 24, 2014
@durack1
Copy link
Member Author

durack1 commented Feb 19, 2015

@doutriaux1 another 2.3 candidate..

@doutriaux1 doutriaux1 modified the milestones: 2.3, 2.2 Feb 19, 2015
@durack1
Copy link
Member Author

durack1 commented Mar 5, 2015

@doutriaux1 seems like ESMF has now been bumped to 7.1.0beta (new link) as the numpy update (#885,#915) is addressed probably best to add in ESMF 7.1.0+ too

@doutriaux1
Copy link
Contributor

Will probably ready at same time as 2.3 perfect

@durack1
Copy link
Member Author

durack1 commented Aug 3, 2015

@dnadeau4 as discussed with @doutriaux1 moving to ESMPy is probably the best investment in time for this issue.. The existing API being using will likely lose support once ESMPy is formally released.

@dnadeau4 dnadeau4 modified the milestones: 3.0, 2.4 Sep 8, 2015
@dnadeau4
Copy link
Contributor

@durack1 ESMPy web page is a bit inconsistent. The documentation specifies:

  • ESMPy: ESMF_7_0_0_beta_snapshot_50

The last release was

  • ESMF Tag: ESMF_6_3_0rp1

@doutriaux1 mentioned 7.1.0beta which I cannot find.

As well, the dependencies for 630rp1 are a little old.

@durack1
Copy link
Member Author

durack1 commented Sep 28, 2015

@dnadeau4 this link might be useful:

https://www.earthsystemcog.org/projects/esmf/release_schedules/

As discussed before it's probably a good time to contact Ryan OKuinghttons as the web-based documentation for ESMF doesn't appear easy to interpret, at least to me..

@dnadeau4
Copy link
Contributor

dnadeau4 commented Oct 1, 2015

I asked Ryan about the next ESMPy version and you can find his answer below.

I think we should wait for the production ready version of ESMPy before updating.

Denis
-------- Forwarded Message --------
Subject: 3613822 Re: ESMPy & ESMF
Date: Wed, 30 Sep 2015 19:05:35 -0600
From: Ryan OKuinghttons
To: Denis Nadeau

Hi Denis,

It's great to hear that you will be working towards an update for
UV-CDAT from ESMP to ESMPy. This is something that we have been talking
about for quite a while now

Your assessment of the state of the ESMPy releases is correct, there has
not been an ESMF/ESMPy release since 630rp1. We have been working
towards the ESMF7.0 release for quite a while, which will also contain
the production-ready version of ESMPy, this is expected before the end
of the year. For this kind of situation, we would normally provide a
beta snapshot to the upcoming release for you to use to help with
development and testing on your end, and then notify you when the
official release is ready. If you require something sooner than that,
then we can look at some other options.

Ryan

@durack1
Copy link
Member Author

durack1 commented Oct 2, 2015

@dnadeau4 just FYI, the original implementation of ESMF into UV-CDAT was based on pre-release packages, which if I remember correctly were pretty stable and provided a good platform to get things ready for the final release.. I think @doutriaux1 will have an opinion on this..

@doutriaux1
Copy link
Contributor

my opinion is that if you can get your hands on a near beta release of esmpy it's worth starting to work on switching the APIs from ESMP to esmpy. They will be more friendly to you if you have any question/changes needed before they release it.

@durack1
Copy link
Member Author

durack1 commented Feb 1, 2016

@dnadeau4 @doutriaux1

From: <esmf_info-bounces@list.woc.noaa.gov> on behalf of Gerhard Theurich
Date: Friday, January 29, 2016 at 10:26 PM
To: ESMF Info
Subject: [Esmf_info] ESMF Internal Release v7.0.0

Dear all,

ESMF internal release v7.0.0 is now available from the ESMF website, 
https://www.earthsystemcog.org/projects/esmf/.  Click the "Software" tab on
the top horizontal navigation bar, then "Download/Releases" right below, and
go to the "Last Release (7.0.0)" entry in the table.  Release notes, known bugs,
and links to documentation for the release can be found on this web page.
Release notes are also included at the bottom of this email.

@doutriaux1 doutriaux1 modified the milestones: 3.0, 3.2 Mar 29, 2019
@downiec downiec removed this from the 8.2 milestone Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants