Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISOMIP+ viz error #877

Open
xylar opened this issue Dec 19, 2024 · 0 comments
Open

ISOMIP+ viz error #877

xylar opened this issue Dec 19, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@xylar
Copy link
Collaborator

xylar commented Dec 19, 2024

I'm seeing the following in initial_state for isomip_plus (Ocean0, z-star but I don't think that matters):

      Failed
Exception raised while running the steps of the test case
Traceback (most recent call last):
  File "/gpfs/fs1/home/ac.xylar/compass/main/compass/run/serial.py", line 322, in _log_and_run_test
    _run_test(test_case, available_resources)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/compass/main/compass/run/serial.py", line 419, in _run_test
    _run_step(test_case, step, test_case.new_step_log_file,
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              available_resources)
              ^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/compass/main/compass/run/serial.py", line 470, in _run_step
    step.run()
    ~~~~~~~~^^
  File "/gpfs/fs1/home/ac.xylar/compass/main/compass/ocean/tests/isomip_plus/initial_state.py", line 87, in run
    self._plot(ds)
    ~~~~~~~~~~^^^^
  File "/gpfs/fs1/home/ac.xylar/compass/main/compass/ocean/tests/isomip_plus/initial_state.py", line 250, in _plot
    plotter.plot_horiz_series(ds.ssh,
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
                              'ssh', 'ssh',
                              ^^^^^^^^^^^^^
                              True, vmin=-700, vmax=0)
                              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/compass/main/compass/ocean/tests/isomip_plus/viz/plot.py", line 532, in plot_horiz_series
    self._plot_horiz_field(field, title=title, outFileName=outFileName,
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           oceanDomain=oceanDomain, vmin=vmin,
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
                           cmap_set_over=cmap_set_over,
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           cmap_scale=cmap_scale, figsize=figsize)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/compass/main/compass/ocean/tests/isomip_plus/viz/plot.py", line 812, in _plot_horiz_field
    localPatches.set_clim(vmin=vmin, vmax=vmax)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colorizer.py", line 380, in set_clim
    self._colorizer.set_clim(vmin, vmax)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colorizer.py", line 271, in set_clim
    self.norm.vmin = colors._sanitize_extrema(vmin)
    ^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colors.py", line 2183, in vmin
    self._changed()
    ~~~~~~~~~~~~~^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colors.py", line 2211, in _changed
    self.callbacks.process('changed')
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/cbook.py", line 366, in process
    self.exception_handler(exc)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/cbook.py", line 110, in _exception_printer
    raise exc
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/cbook.py", line 361, in process
    func(*args, **kwargs)
    ~~~~^^^^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colorizer.py", line 286, in changed
    self.callbacks.process('changed')
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/cbook.py", line 366, in process
    self.exception_handler(exc)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/cbook.py", line 110, in _exception_printer
    raise exc
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/cbook.py", line 361, in process
    func(*args, **kwargs)
    ~~~~^^^^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colorizer.py", line 578, in changed
    self.callbacks.process('changed', self)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/cbook.py", line 366, in process
    self.exception_handler(exc)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/cbook.py", line 110, in _exception_printer
    raise exc
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/cbook.py", line 361, in process
    func(*args, **kwargs)
    ~~~~^^^^^^^^^^^^^^^^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colorbar.py", line 518, in update_normal
    self._draw_all()
    ~~~~~~~~~~~~~~^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colorbar.py", line 545, in _draw_all
    self._process_values()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colorbar.py", line 1108, in _process_values
    b = self.norm.inverse(b)
  File "/gpfs/fs1/home/ac.xylar/chrysalis/miniforge3/envs/dev_compass_1.6.0-alpha.2/lib/python3.13/site-packages/matplotlib/colors.py", line 2691, in inverse
    raise ValueError("Invalid vmin or vmax")
ValueError: Invalid vmin or vmax

I'm not sure if this is related to a LogNorm or what but maybe something new in the latest matplotlib?

@xylar xylar added the bug Something isn't working label Dec 19, 2024
@xylar xylar self-assigned this Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant