Fonotec / PSF

PSF (Pulsar Spectral Folder): The fastest spectral folder in the local Universe
3 stars 2 forks source link

Running the code cleaner #3

Closed Fonotec closed 6 years ago

Fonotec commented 6 years ago

Currently the code needs to be run with additional arguments that means that running the program can be a bit confusing.

I propose that we make a standard parameter file that is read by the program instead of using a complicated terminal command to do the same. This makes is easier for us and other users like from CAMRAS to use our code.

Fonotec commented 6 years ago

Okay, I started making a param.yml file for the input parameters. More parameters can be added to this file, I also constructed a class to read the param.yml file and to use it easily in the code. See the merge request.

ewoudwempe commented 6 years ago

I adjusted it already a bit, and am currently adapting the code to use it. I will probably drop support for running it the old way (so arguments to specify data file, nbins etc. will no longer be accepted), as that makes the code cleaner. Agreed?

ewoudwempe commented 6 years ago

Also, I'll probably adjust the param file syntax a bit, so it'd be best to wait a bit making examples until that is clear.

Fonotec commented 6 years ago

Agreed, that way running the code is cleaner. The changes so far look good, I will put making the examples on hold.

ewoudwempe commented 6 years ago

Everything works with the new yml files now that #7 is merged. (except the chi squared fitting parameters, see #9)