diff --git a/.github/workflows/test_python.yml b/.github/workflows/test_python.yml index 6db2d816..8c45dd32 100644 --- a/.github/workflows/test_python.yml +++ b/.github/workflows/test_python.yml @@ -8,6 +8,8 @@ on: branches: [ master ] pull_request: branches: [ master ] + schedule: + - cron: '0 8 * * MON' workflow_dispatch: jobs: @@ -33,9 +35,9 @@ jobs: - name: Trial imports run: python -c 'import pytools as pt' - import-matrix: + ubuntu_22_04_versions: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/README b/README index 4c287be0..6931f9fe 100644 --- a/README +++ b/README @@ -66,6 +66,10 @@ export PTOUTPUTDIR=/proj/USERNAME/Plots/ ################################################# https://github.com/fmihpc/analysator/wiki +# Analysator documentation on the link: +################################################# +https://fmihpc.github.io/analysator/ + # For citations, use the DOI or the ready-made button the the right in GitHub! ################################################# https://doi.org/10.5281/zenodo.4462514 diff --git a/pyPlots/colormaps.py b/pyPlots/colormaps.py index dba7fdfe..8deec41b 100644 --- a/pyPlots/colormaps.py +++ b/pyPlots/colormaps.py @@ -1172,9 +1172,13 @@ _cm_name = _cm_name[:-4] _cm_data = np.loadtxt(_f) _cm = LinearSegmentedColormap.from_list(_cm_name, _cm_data) - if Version(mpl_version) > Version("3.5.0"): - mcm.register(_cm) - mcm.register(_cm.reversed()) - else: - plt.register_cmap(cmap=_cm) - plt.register_cmap(cmap=_cm.reversed()) + try: + if Version(mpl_version) > Version("3.5.0"): + mcm.register(_cm) + mcm.register(_cm.reversed()) + else: + plt.register_cmap(cmap=_cm) + plt.register_cmap(cmap=_cm.reversed()) + except Exception as e: + logging.warning("Problem registering colormap " + _cm_name + ". Produced exception was:\n"+str(e)) +