From 1e81972357060111cffbb15a63425c0c434e58a8 Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Thu, 2 May 2024 16:40:22 -0600 Subject: [PATCH] Albedo CLI - Remove logic to "automagically" set plot labels. Hard-code the labels matching the input args to easier identify potential mix-and-match of input files. --- src/spectro_dp/asd/albedo.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/spectro_dp/asd/albedo.py b/src/spectro_dp/asd/albedo.py index 4e14803..780aa37 100644 --- a/src/spectro_dp/asd/albedo.py +++ b/src/spectro_dp/asd/albedo.py @@ -64,7 +64,8 @@ def cli( ): try: composite = MeasurementComposite( - input_dir, file_prefix, down_index, up_index, + input_dir, file_prefix, + set_1_index=down_index, set_2_index=up_index, set_1_count=down_count, set_2_count=up_count, debug=debug ) @@ -72,12 +73,8 @@ def cli( print(f"Results saved to:\n {composite.save(output_file_suffix)}") - if composite.set_2.mean() < composite.set_1.mean(): - set_1_label = 'Incoming' - set_2_label = 'Outgoing' - else: - set_1_label = 'Outgoing' - set_2_label = 'Incoming' + set_1_label = 'Down Measurements' + set_2_label = 'Up Measurements' if not skip_plot: Plotter.show_composite(