Closed carlosgjs closed 9 months ago
@anujsinha3 is working on this
@carlosgjs - Do we need to change the enum value for time_norm from "no" to "none" or is it tracked on a separate issue?
If yes to the change, do we expect any breaking change impact due to this?
Contact
carlosg@uw.edu
Description
The
ConfigParameters
fieldsfreq_norm
,time_norm
,cc_method
andrm_resp
, insrc/noisepy/seis/datetypes.py
, are currently of type string. However, these can only take a fixed set of values, so they should enums instead.The task is to change this for each field to an enum. E.g. for
freq_norm
:rma, no, phase_only
)ConfigParameters.freq_norm
argument.freq_norm
to innoise_module.py
,stack.py
,correlate.py
to compare against the enum values instead of the string constants.get_started.ipynb
andnoisepy_scedc_tutorial.ipynb
notebooks in the tutorial folder to use the enum values for theconfig
object.A good example to follow that is already an enum is
stack_method
: https://github.com/noisepy/NoisePy/blob/5334d63a9ec0f7183b20e513e03d49c21cf981d6/src/noisepy/seis/datatypes.py#L191C12-L191C12Code Repository
https://github.com/mdenolle/NoisePy
Issue link
No response
Task level
L2
What is the primary programming language for the task
python
Additional dependencies
No response