Skip to content

Commit

Permalink
fix sh_order setter
Browse files Browse the repository at this point in the history
  • Loading branch information
ahms5 committed Apr 26, 2024
1 parent 88dcccd commit a70e7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfar/classes/coordinates.py
Expand Up @@ -159,7 +159,7 @@ def __init__(

# save meta data
self._set_weights(weights)
self._sh_order = sh_order
self.sh_order = sh_order
self._comment = comment

if sh_order is not None:
Expand Down Expand Up @@ -954,7 +954,7 @@ def sh_order(self, value):
"of spharpy.samplings.SamplingSphere."),
PyfarDeprecationWarning)

self._sh_order = int(value)
self._sh_order = int(value) if value is not None else None

@property
def comment(self):
Expand Down

0 comments on commit a70e7ff

Please sign in to comment.