Skip to content

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

@MarCorralesU

Description

@MarCorralesU

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions