Commit ed9945a6 authored by Zolnierczuk, Piotr's avatar Zolnierczuk, Piotr
Browse files

Merge branch 'dev/mplbug'

revision bump
parents c71f6844 fa8476cc
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -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)"
@@ -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():
+2 −2
Original line number Diff line number Diff line
@@ -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"