-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rely on setters for catching out-of-range values.
Now that setters in the Mapping class can catch out-of-range values (for slots properly annotated with range constraints in the underlying LinkML model), we no longer need to explicitly check values when reading a SSSOM/TSV file: we can just call the setters with whatever value we got and catch the IllegalArgumentException that would be thrown if the value is out of the expected range.
- Loading branch information
Showing
2 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters