Skip to content

Commit

Permalink
Merge pull request #596 from pyfar/hot-sh_order
Browse files Browse the repository at this point in the history
hotfix: allow None in sh_order setter
  • Loading branch information
mberz committed May 3, 2024
2 parents 88dcccd + a70e7ff commit fdf5fb1
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 fdf5fb1

Please sign in to comment.