Monte carlo output handler.
Module Contents
Classes
BuckyOutputWriter
|
Class to manage the writing of raw output files and all the threading that comes with it. |
Functions
-
class bucky.model.io.BuckyOutputWriter(output_base_dir, run_id, data_format='parquet')[source]
Class to manage the writing of raw output files and all the threading that comes with it.
-
close(self)[source]
Cleanup and join write thread.
-
abstract write_historical_data(self)[source]
TODO Write historical data used.
-
write_mc_data(self, data_dict)[source]
Write the data from one MC to the output dir.
-
write_metadata(self, adm_mapping, str_dates, fitted_timeseries=None)[source]
Write metadata to output dir.
-
abstract write_par_files(self)[source]
TODO Copy parameter specs.
-
write_params(self, seed, params)[source]
TODO WIP Write MC parameters per iteration.
-
bucky.model.io.init_write_thread(**kwargs)[source]
Init write thread w/ a nonblocking stream.
-
bucky.model.io.merge_parquet_dataset(data_dir, **kwargs)[source]
Merge parquet datasets w/ fastparquet.
-
bucky.model.io.write_parquet_dataset(df_data, data_dir, stream, pinned_mem)[source]
Write a dataframe of MC output to parquet.