Function prefetch_binary
pub fn prefetch_binary<P>(path: P, rad_type: RadType) -> Result<(), Error>
Expand description
Generate a binary file of pre-fetched data
Can be used to update the pre-processed data under the data/
directory
that are used in all load
operations.
This will use fetch_all() and is therefore parallelised, but may still take up to a few minutes depending on radiation type.
// Fetch all chart of nuclide data and store in a binary file
prefetch_binary("/path/to/file.bin", RadType::Gamma).unwrap();