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

Error catching: util_unit.py #5

Open
rdoddanavar opened this issue May 26, 2019 · 1 comment
Open

Error catching: util_unit.py #5

rdoddanavar opened this issue May 26, 2019 · 1 comment
Assignees
Labels
logging & errors User input error, exception handling, event logging, etc. pre-processing Simulation I/O & data management

Comments

@rdoddanavar
Copy link
Owner

rdoddanavar commented May 26, 2019

Function convert(*args):

  • Unit multiplier 1.0 returned for unspecified or nondimensional units
  • Need exception for invalid dict keys --> nonexistent units

Reference: https://docs.python.org/3/tutorial/errors.html

@rdoddanavar rdoddanavar added the logging & errors User input error, exception handling, event logging, etc. label May 26, 2019
@rdoddanavar rdoddanavar self-assigned this May 26, 2019
@rdoddanavar
Copy link
Owner Author

Improper unit or quantity raises KeyError exception. Use this to create more specific error message

@rdoddanavar rdoddanavar added pre-processing Simulation I/O & data management low-priority bug Broken feature or failed use case and removed logging & errors User input error, exception handling, event logging, etc. labels Jun 2, 2019
@rdoddanavar rdoddanavar added this to the v19.0.0 milestone Jun 27, 2019
@rdoddanavar rdoddanavar removed this from the v19.0.0 milestone Jan 29, 2020
@rdoddanavar rdoddanavar added logging & errors User input error, exception handling, event logging, etc. pre-processing Simulation I/O & data management and removed low-priority pre-processing Simulation I/O & data management bug Broken feature or failed use case labels Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logging & errors User input error, exception handling, event logging, etc. pre-processing Simulation I/O & data management
Projects
None yet
Development

No branches or pull requests

1 participant