Skip to content

Commit

Permalink
[cm] Removing unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
christhetree committed Sep 30, 2024
1 parent 3849ac3 commit 81762e0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions neutone_sdk/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,17 +210,4 @@ def validate_metadata(metadata: dict) -> bool:
AudioSample.from_b64(audio_sample_pair["in"])
AudioSample.from_b64(audio_sample_pair["out"])

# We shouldn't have any problems here but as a sanity check
for param_metadata in metadata["neutone_parameters"].values():
try:
if param_metadata["type"] == "knob":
assert (
0.0 <= param_metadata["default_value"] <= 1.0
), "Default values for continuous NeutoneParameters should be between 0 and 1"
except:
log.error(
f"Could not convert default_value to float for parameter {param_metadata.name} "
)
return False

return True

0 comments on commit 81762e0

Please sign in to comment.