trident.config.verify
- trident.config.verify(save=False)[source]
Verify that the bulk of Trident’s functionality is working. First, it ensures that the user has a configuration file and ion table datafile, and creates/downloads these files if they do not exist. Next, it creates a single-cell grid-based dataset in memory, generates a ray by sending a sightline through that dataset, then makes a spectrum from the ray object. It saves all data to a tempdir before deleting it.
Parameters
- Save
boolean, optional
By default, verify saves all of its outputs to a temporary directory and then removes it upon completion. If you would like to see the resulting data from verify(), set this to be True and it will save a light ray, and raw and processed spectra in the current working directory. Default: False
Example
Verify Trident works.
>>> import trident >>> trident.verify()