Skip to content
Anne Archibald edited this page Jul 11, 2022 · 24 revisions

Quick solutions to common tasks (taken from #pint and elsewhere). It's also worth checking the PINT HOWTOs, particularly as some things that used to be here were moved there.

Find data files for testing/tutorials

The data files (par and tim) associated with the tutorials and other examples can be located via pint.config.examplefile() (available via the pint.config module):

import pint.config
fullfilename = pint.config.examplefile(filename)

For example, the file NGC6440E.par from the Time a Pulsar notebook can be found via:

import pint
fullfilename = pint.config.examplefile("NGC6440E.par")