Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Units] Refactor setter to use a loop
Rather than checking each value individually with try/except, use the ito method and try to convert within a loop. This simplifies testing for the error condition and looks a little cleaner.
- Loading branch information
1 parent
c178c7c
commit a832a71
Showing
2 changed files
with
40 additions
and
34 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