Skip to content

Commit

Permalink
fix(Field): correct abstract method decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
swapneelap committed Nov 30, 2023
1 parent f7c2a2f commit bbcf435
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions discretisedfield/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -3458,8 +3458,7 @@ def to_vtk(self):
vtk_data.SetActiveScalars("field")
return rgrid

@abc.abstractmethod
@property
@abc.abstractproperty
def mpl(self):
pass

Expand Down Expand Up @@ -3524,8 +3523,7 @@ def _hv_vdims_guess(self, kdims):
# the hv class expects two valid vdims or None
return None if None in vdims else vdims

@abc.abstractmethod
@property
@abc.abstractproperty
def _hv_key_dims(self):
pass

Expand Down Expand Up @@ -3950,8 +3948,7 @@ def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
def to_xarray(self, name="field", unit=None):
pass

@abc.abstractmethod
@classmethod
@abc.abstractclassmethod
def from_xarray(cls, xa):
pass

Expand Down

0 comments on commit bbcf435

Please sign in to comment.