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

hotfix: allow None in sh_order setter #596

Merged
merged 1 commit into from May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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