Loading pysen/plot/plotutil.py +6 −7 Original line number Diff line number Diff line Loading @@ -4,14 +4,13 @@ plot utilities import math import numpy as np import matplotlib as mpl from matplotlib import cm try: _colormaps = mpl.colormaps _get_cmap = cm.get_cmap def get_colormap(cmap='hsv'): "get color map (new matplotlib 3.7+)" return _colormaps.get_cmap(cmap) return _get_cmap(cmap) except AttributeError: def get_colormap(cmap=None): "get color map (old matplotlib)" Loading Loading @@ -59,9 +58,9 @@ def get_pix(kwargs): res['tbin1'] = kwargs.pop('tbin1', 0) # TOF bins res['tbin2'] = kwargs.pop('tbin2', None) res['xpix1'] = kwargs.pop('xpix1', 10) res['xpix2'] = kwargs.pop('xpix2', 22) res['xpix2'] = kwargs.pop('xpix2', -10) res['ypix1'] = kwargs.pop('ypix1', 10) res['ypix2'] = kwargs.pop('ypix2', 22) res['ypix2'] = kwargs.pop('ypix2', -10) return res def test(): Loading pysen/revision.py +2 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ PySEN revision module """ import sys __version__ = "2.0.8" __date__ = "Oct 23, 2025" __version__ = "2.0.9" __date__ = "Nov 11, 2025" def version(full=False): "get pysen version number" Loading Loading
pysen/plot/plotutil.py +6 −7 Original line number Diff line number Diff line Loading @@ -4,14 +4,13 @@ plot utilities import math import numpy as np import matplotlib as mpl from matplotlib import cm try: _colormaps = mpl.colormaps _get_cmap = cm.get_cmap def get_colormap(cmap='hsv'): "get color map (new matplotlib 3.7+)" return _colormaps.get_cmap(cmap) return _get_cmap(cmap) except AttributeError: def get_colormap(cmap=None): "get color map (old matplotlib)" Loading Loading @@ -59,9 +58,9 @@ def get_pix(kwargs): res['tbin1'] = kwargs.pop('tbin1', 0) # TOF bins res['tbin2'] = kwargs.pop('tbin2', None) res['xpix1'] = kwargs.pop('xpix1', 10) res['xpix2'] = kwargs.pop('xpix2', 22) res['xpix2'] = kwargs.pop('xpix2', -10) res['ypix1'] = kwargs.pop('ypix1', 10) res['ypix2'] = kwargs.pop('ypix2', 22) res['ypix2'] = kwargs.pop('ypix2', -10) return res def test(): Loading
pysen/revision.py +2 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,8 @@ PySEN revision module """ import sys __version__ = "2.0.8" __date__ = "Oct 23, 2025" __version__ = "2.0.9" __date__ = "Nov 11, 2025" def version(full=False): "get pysen version number" Loading