bourque / lasp_exercise

1 stars 0 forks source link

Make exercise.py more DRY #5

Open bourque opened 2 years ago

bourque commented 2 years ago

The initial design of exercise.py is not very DRY (i.e. Don't Repeat Yourself), as many of the variables are 'hard-coded' based on the experiment (e.g. count_rate_downscan and count_rate_upscan instead of just count_rate). Since this code should be able to incorporate other experiments other than the DownScan and UpScan, the experiment itself should be variable, or perhaps the IrradianceExercise class should be reworked to have the exercise be an attribute.