Data
- curie.download(db='all', overwrite=False)[source]
Download nuclear data files as sqlite .db files.
Data files are fetched automatically the first time they are needed, so calling this function is only necessary to prepare an offline machine, to pre-populate a fresh data directory, or to repair/update existing data. An installed file from an older data generation is replaced by the current release automatically;
overwrite=Truereplaces files unconditionally. Files are stored in a per-user data directory (printed byci.data._data_path()), which can be overridden with theCURIE_DATA_DIRenvironment variable. Every download is verified against the SHA256 recorded for the curie data release.Note that the large cross-section libraries (ENDF, the TENDL variants) are normally assembled on demand from small per-target files; downloading them here fetches each complete library in one file. Files already provided by a site-wide data directory are reported and skipped unless
overwrite=True, which fetches a fresh copy into the user data directory (shadowing the site copy).- Parameters:
- dbstr, optional
Name of database to download, default is ‘all’. Options include: ‘all’, ‘decay’, ‘ziegler’, ‘endf’, ‘tendl’, ‘tendl_n_rp’, ‘tendl_p_rp’, ‘tendl_d_rp’, ‘tendl_a_rp’, ‘IRDFF’, ‘iaea_monitors’.
- overwritebool, optional
If overwrite is
True, will save write over existing data. Default isFalse.
Examples
The most common use case will be to (re)download all the data files
>>> ci.download(overwrite=True)
Some other use cases: To update only the ‘endf’ library
>>> ci.download('endf', True)
Or to download the ‘decay’ library for the first time
>>> ci.download('decay')