uw-ssec / codeuw

Repository of resources and tasks for contributing to scientific software projects
4 stars 4 forks source link

[Code UW]: NoisePy - Change config values to be enums #20

Closed carlosgjs closed 9 months ago

carlosgjs commented 1 year ago

Contact

carlosg@uw.edu

Description

The ConfigParameters fields freq_norm, time_norm, cc_method and rm_resp, in src/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:

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-L191C12

Code 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

carlosgjs commented 11 months ago

@anujsinha3 is working on this

anujsinha3 commented 11 months ago

@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?