Skip to content

Commit

Permalink
Albedo CLI - Remove logic to "automagically" set plot labels.
Browse files Browse the repository at this point in the history
Hard-code the labels matching the input args to easier identify
potential mix-and-match of input files.
  • Loading branch information
Joachim Meyer committed May 2, 2024
1 parent 14f8f3d commit 1e81972
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/spectro_dp/asd/albedo.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,17 @@ 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
)
composite.calculate()

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(
Expand Down

0 comments on commit 1e81972

Please sign in to comment.