CDAT / cdat

Community Data Analysis Tools
Other
174 stars 68 forks source link

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

Open durack1 opened 10 years ago

durack1 commented 10 years ago

[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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

@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 commented 9 years ago

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?

durack1 commented 9 years ago

@doutriaux1 another 2.3 candidate..

durack1 commented 9 years ago

@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 commented 9 years ago

Will probably ready at same time as 2.3 perfect

durack1 commented 9 years ago

@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 commented 9 years ago

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

The last release was

@doutriaux1 mentioned 7.1.0beta which I cannot find.

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

durack1 commented 9 years ago

@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 commented 9 years ago

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 commented 9 years ago

@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 commented 9 years ago

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 commented 8 years ago

@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.