[Issues] failure to produce inspect images

Ewout Helmich helmich at astro.rug.nl
Tue Nov 24 10:32:47 CET 2020


Will, look into this. I've created this issue:

https://gitlab.astro-wise.org/omegacen/astro/-/issues/122

Ewout

On 11/23/20 6:56 PM, Koen Kuijken wrote:
> I am unable to produce inspect images for coaddedregriddedframes or gaissianizedframes.
> I am running the master awe on nieuwland.astro.rug.nl (tried develop and the result is the same):
>
> nieuwland.intra.astro.rug.nl>which awe
> /Software/users/astro-wise/awehome/Linux-redhat-7.9-x86_64/master/astro/bin/awe
>
> e.g.
>
> nieuwland.intra.astro.rug.nl>awe
> Python 3.5.9 (default, Oct 21 2020, 09:35:48)
> [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>
>
>                 Welcome to the Astro-WISE Environment
>
> |01-Feb-19   Planned Groningen database downtime:
> |             Tuesdays in 2019: January 8, February 5, March 5, April 2,
>                                  May 7, June 4, July 2, August 6, September 3,
>                                  October 8, November 5, December 3
> |20-Nov-17   The Astro-WISE documentation has been converted from LaTex to
> |            Sphinx. Documentation is now available at doc.astro-wise.org.
>
> Importing Astro-WISE packages. Please wait...
>
> DARMA using PyFITS version 3.4 and NumPy version 1.11.2
> Distributed Processing Unit: dpu.hpc.rug.astro-wise.org
> [nieuwland.intra.astro.rug.nl] 2020-11-23T17:46:36 - Warning: astro.main.ESOIDAttributeCalculator is different from stored definition!
> Dataserver: ds.astro.rug.astro-wise.org
>
> Current profile:
> - username : AWKKUIJKEN
> - database : db.astro.rug.astro-wise.org
> - project  : KIDS
> - current privileges : 1 (MyDB)
>
> WARNING: Module pylab version mismatch. Expected version 1.5.3, got 3.0.3
> WARNING: Program scamp version mismatch. Expected version 1.7.0, got while
> awe> g=GaussianizedFrame.creation_date>datetime.datetime.now()-datetime.timedelta(days=25)
> awe> len(g)
> 324
> awe> g[0].get_inspect_figures()
> []
> g0.make_inspect_figures()
> [nieuwland.intra.astro.rug.nl] 2020-11-23T17:49:28 - Retrieving Sci-FGETMAN-OMEGACAM-------OCAM_u_SDSS---Coadd-Gaussianized---Sci-59170.9731644-a222077181dd15e6681e9148e46ab753a40dbf83.fits
> [nieuwland.intra.astro.rug.nl] 2020-11-23T17:49:51 - Retrieved Sci-FGETMAN-OMEGACAM-------OCAM_u_SDSS---Coadd-Gaussianized---Sci-59170.9731644-a222077181dd15e6681e9148e46ab753a40dbf83.fits[1424491kB] in 23.36 seconds (60971.73kBps)
> [nieuwland.intra.astro.rug.nl] 2020-11-23T17:49:51 - Making ThumbnailPlot for Sci-FGETMAN-OMEGACAM-------OCAM_u_SDSS---Coadd-Gaussianized---Sci-59170.9731644-a222077181dd15e6681e9148e46ab753a40dbf83.fits
> [nieuwland.intra.astro.rug.nl] 2020-11-23T17:49:52 - Binning input image (18578 x 19629) with factor 12...
> [nieuwland.intra.astro.rug.nl] 2020-11-23T17:50:11 - Output image dimensions will be: 1548 x 1635
> [nieuwland.intra.astro.rug.nl] 2020-11-23T17:50:11 - Done.
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "/Software/users/astro-wise/awehome/master/astro/main/GaussianizedFrame.py", line 429, in make_inspect_figures
>      thumbnailplot.make()
>    File "/Software/users/astro-wise/awehome/master/astro/plot/ThumbnailPlot.py", line 189, in make
>      FIG_HEIGHT = float(ysize) / float(DPI)  # inch
> ValueError: could not convert string to float: 'figure'
> awe>
>
> Looking at the ThumbnailPlot.py code it seems that DPI is equal to 'figure' rather than a number as expected. The call that sets DPI is
>          DPI = pylab.matplotlib.rcParams['savefig.dpi']
>
> I could fix this by first setting
> pylab.matplotlib.rcParams['savefig.dpi']=100
> before calling the get_inspect_images() method.
>
> But then the next error occurs, in add_colorbar(), and that one I cannot fix easily.
>
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "/Software/users/astro-wise/awehome/master/astro/main/GaussianizedFrame.py", line 429, in make_inspect_figures
>      thumbnailplot.make()
>    File "/Software/users/astro-wise/awehome/master/astro/plot/ThumbnailPlot.py", line 235, in make
>      self.add_colorbar(caxis, max_level)
>    File "/Software/users/astro-wise/awehome/master/astro/plot/ThumbnailPlot.py", line 113, in add_colorbar
>      ticks = [float(text.get_text()) for text in cbar.ax.get_yticklabels()]
>    File "/Software/users/astro-wise/awehome/master/astro/plot/ThumbnailPlot.py", line 113, in <listcomp>
>      ticks = [float(text.get_text()) for text in cbar.ax.get_yticklabels()]
> ValueError: could not convert string to float:
>
> Is this related to the warning about the version of pylab that I get on startup?
> Do I need to change something in my environment or is this something you can fix?
>
>
>
>
> _______________________________________________
> Issues mailing list
> Issues at astro-wise.org
> http://mailman.astro-wise.org/mailman/listinfo/issues


More information about the Issues mailing list