Commit 4ddb1f3a authored by Marco Selig's avatar Marco Selig
Browse files

internal version changed to 0.2.1; hp_space.get_plot modified; .gitignore updated.

parent 38d0dc4d
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
.git/ .git/
.svn/ .svn/
.spyderproject .spyderproject
build
demos/* demos/*
!demos/demo_faraday.py !demos/demo_faraday.py
......
...@@ -480,7 +480,7 @@ class _about(object): ## nifty support class for global settings ...@@ -480,7 +480,7 @@ class _about(object): ## nifty support class for global settings
""" """
## version ## version
self._version = "0.2.0" self._version = "0.2.1"
## switches and notifications ## switches and notifications
self._errors = notification(default=True,ccode=notification._code) self._errors = notification(default=True,ccode=notification._code)
...@@ -4860,8 +4860,9 @@ class hp_space(space): ...@@ -4860,8 +4860,9 @@ class hp_space(space):
x = self.enforce_shape(np.array(x,dtype=self.datatype)) x = self.enforce_shape(np.array(x,dtype=self.datatype))
if(norm=="log")and(np.min(x,axis=None,out=None)<=0): if(norm=="log")and(np.min(x,axis=None,out=None)<=0):
raise ValueError(about._errors.cstring("ERROR: nonpositive value(s).")) raise ValueError(about._errors.cstring("ERROR: nonpositive value(s)."))
if(cmap is not None): if(cmap is None):
cmap.set_under(color='k',alpha=0.0) ## transparent box cmap = pl.cm.jet ## default
cmap.set_under(color='k',alpha=0.0) ## transparent box
hp.mollview(x,fig=None,rot=None,coord=None,unit=unit,xsize=800,title=title,nest=False,min=vmin,max=vmax,flip="astro",remove_dip=False,remove_mono=False,gal_cut=0,format="%g",format2="%g",cbar=cbar,cmap=cmap,notext=False,norm=norm,hold=False,margins=None,sub=None) hp.mollview(x,fig=None,rot=None,coord=None,unit=unit,xsize=800,title=title,nest=False,min=vmin,max=vmax,flip="astro",remove_dip=False,remove_mono=False,gal_cut=0,format="%g",format2="%g",cbar=cbar,cmap=cmap,notext=False,norm=norm,hold=False,margins=None,sub=None)
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
......
...@@ -23,7 +23,7 @@ from distutils.core import setup ...@@ -23,7 +23,7 @@ from distutils.core import setup
import os import os
setup(name="nifty", setup(name="nifty",
version="0.2.0", version="0.2.1",
description="Numerical Information Field Theory", description="Numerical Information Field Theory",
author="Marco Selig", author="Marco Selig",
author_email="mselig@mpa-garching.mpg.de", author_email="mselig@mpa-garching.mpg.de",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment