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

loading .txt file with unit definitions as part of the pint package #5

Open
MarCorralesU opened this issue Jun 30, 2022 · 0 comments
Open

Comments

@MarCorralesU
Copy link
Collaborator

MarCorralesU commented Jun 30, 2022

in line 56, for the ureg.load_definitions command, I had to modify the string to the 'units_def.txt' to include the full path of the file, and then the command was able to find the file.
my line now looks like this:
ureg.load_definitions('/Users/mc4214/GIT/PSSdb/scripts/units_def.txt')

ureg.load_definitions('units_def.txt') # This text file is used to define custom units from standard units (e.g. square_pixel etc.)

@MarCorralesU MarCorralesU changed the title comments on standardizer function loading .txt file with unit definitions as part of the pint package Jun 30, 2022
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

No branches or pull requests

1 participant