Skip to content

clean calib data before before use#424

Open
salman2135 wants to merge 6 commits intoasr-testingfrom
update-asr-calib
Open

clean calib data before before use#424
salman2135 wants to merge 6 commits intoasr-testingfrom
update-asr-calib

Conversation

@salman2135
Copy link
Copy Markdown
Member

No description provided.

@salman2135 salman2135 requested a review from SonjaSt March 31, 2026 12:23
if self._min_cutoff <= new_cutoff <= self._max_cutoff:
self._cutoff = new_cutoff
self._state = get_asr_state(self.calibration_data_input, self.sr, self.cutoff)
self.set_state_from_calibration_data(self.calibration_data_input, self.sr, self.cutoff)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will also throw an exception, but now that I see this, I think set_cutoff can be removed entirely. I don't think it's referenced anywhere else - although I would put this behaviour into the setter (checking for min and max cutoffs and giving an error).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, I updated the method.
In theory only Explore Desktop is going to use it, and we will need different set of validators in UI as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants