Skip to content

Commit 6a55b42

Browse files
ivhclaude
andcommitted
Update MOSAIC VIS example and settings
- Add flat step to mosaic_vis.py pipeline - Use standard data paths and env vars - VIS3 inherits from VIS1 settings - Increase VIS1 trace filter_y to 8 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent de76f5d commit 6a55b42

5 files changed

Lines changed: 6 additions & 90 deletions

File tree

examples/mosaic_vis.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
plot = int(os.environ["PYREDUCE_PLOT"])
3737
plot_dir = join(data_dir, "pyreduce_plots", channel)
3838
util.set_plot_dir(plot_dir)
39-
# to not show plots during processing:
40-
# PYREDUCE_PLOT_SHOW=off uv run...
4139

4240
# File paths (simulated data)
4341
flat_file = join(
@@ -72,8 +70,9 @@
7270
)
7371

7472
# Run pipeline steps
75-
pipe.trace([flat_file])
76-
pipe.curvature([thar_file])
73+
# pipe.trace([flat_file])
74+
# pipe.curvature([thar_file])
75+
pipe.flat([flat_file])
7776
pipe.normalize_flat()
7877
pipe.wavecal_master([thar_file])
7978
pipe.wavecal_init()

pyreduce/instruments/MOSAIC/bundle_centers_vis1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@
6666
64: 3874.4365
6767
65: 3935.0129
6868
66: 3995.5693
69-
67: 4056.2100
69+
67: 4056.2100

pyreduce/instruments/MOSAIC/bundle_centers_vis3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@
6666
64: 3873.05
6767
65: 3934.25
6868
66: 3993.05
69-
67: 4055.45
69+
67: 4055.45

pyreduce/instruments/MOSAIC/bundle_centers_vis4.yaml

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -67,86 +67,3 @@
6767
65: 3883.35
6868
66: 3943.07
6969
67: 4004.18
70-
71-
72-
73-
74-
75-
76-
77-
78-
79-
80-
81-
82-
83-
84-
85-
86-
87-
88-
89-
90-
91-
92-
93-
94-
95-
96-
97-
98-
99-
100-
101-
102-
103-
104-
105-
106-
107-
108-
109-
110-
111-
112-
113-
114-
115-
116-
117-
118-
119-
120-
121-
122-
123-
124-
125-
126-
127-
128-
129-
130-
131-
132-
133-
134-
135-
136-
137-
138-
139-
140-
141-
142-
143-
144-
145-
146-
147-
148-
149-
150-
151-
152-

pyreduce/instruments/MOSAIC/settings_VIS1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"noise_relative": 0.05,
88
"min_cluster": 100,
99
"min_width": 0.6,
10-
"filter_y": 5,
10+
"filter_y": 8,
1111
"border_width": [0, 0,0,0],
1212
"closing_shape": [1, 50],
1313
"opening_shape": [1, 5]

0 commit comments

Comments
 (0)