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

Fix refresh #63

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor fix for plot method
  • Loading branch information
Chilipp committed Jun 1, 2023
commit 996f4d99c7e80bb7c574d04e608b591acb7d1005
12 changes: 12 additions & 0 deletions psy_view/plotmethods.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

import xarray as xr
from psyplot.utils import unique_everseen
import psyplot.data as psyd

from PyQt5 import QtWidgets, QtCore, QtGui
import psy_view.dialogs as dialogs
Expand Down Expand Up @@ -401,6 +402,17 @@ class MapPlotWidget(PlotMethodWidget):

plotmethod = 'mapplot'

@property
def sp(self) -> Optional[Project]:
sp = super().sp
if sp:
arrays: List[str] = [
data.psy.arr_name for data in sp
if not isinstance(data, psyd.InteractiveList)
]
return sp(arr_name=arrays)
return sp

def get_rows(self, func: Callable) -> List[List[GridCell]]:
"""Get the rows of the formatoption widgets.

Expand Down