sbfnk / rbi

R package for Bayesian inference with state-space models using LibBi.
https://sbfnk.github.io/rbi/
24 stars 9 forks source link

Output file in `bi_generate_dataset()` #5

Closed tyler-abbot closed 8 years ago

tyler-abbot commented 8 years ago

Not sure why the option to include an output file in the options is not working.

Possibly caused by the temporary directory. Including the working_folder option generates a results file, but with a different name and not in the location specified in config file, as well as creating several additional files and not overwriting old results as LibBi does.

sbfnk commented 8 years ago

This should work now -- note that the output file is not put into working_folder but into the current directory (if given as relative file name) or wherever specified as absolute file name. If passed as option to the libbi call from R (as `output_file), this overrides anything given in the config file.

tyler-abbot commented 8 years ago

For me this only works as an argument. Specifying an ouput file in the config file does not write a file.

sbfnk commented 8 years ago

Could you post the relevant contents of the config file and the exact command that is failing?

tyler-abbot commented 8 years ago

I include this line in the config file --output-file data.nc and run this command:

synthetic_dataset <- bi_generate_dataset(model=Lorenz96, init=init_parameters, config="config.conf")

The command works, but the output file does not show up. If I add the option of output_file in the command it works.

sbfnk commented 8 years ago

Thanks for (re-)reporting.