CHIMEFRB / fitburst

An open-source package of utilities for direct modeling of radio dynamic spectra.
https://chimefrb.github.io/fitburst/
MIT License
11 stars 2 forks source link

preprocessing updates to `generic` pipeline script and bug fix in model.py #61

Closed emmanuelfonseca closed 2 years ago

emmanuelfonseca commented 2 years ago

hi @ketansand @DanielaBreitman,

i made two changes to make fitburst work on your fitburst_195718715.npz data file:

  1. i un-commented out the data.preprocess_data() call from the fitburst_example_generic.py pipeline script, and added a few options to control the range of variance values used in determining which channels are RFI or not
  2. i also fixed a bug i somehow introduced recently that was messing with the DM (or DM offset) fit.

i suggest pulling this branch, running pip install ., and trying out the following command to see if you get what i get: > python /path/to/fitburst_example_generic.py fitburst_195718715.npz --verbose --variance_range 0. 1. --width 0.001 --amplitude 1.0

i'm happy to chat about these changes on wednesday!