|
16 | 16 | "https://www.dropbox.com/scl/fi/rbe7vm3sha9mbloek1iio/suncet_metadata_definition_v1.0.0.csv?rlkey=mswa2lvdrvbb9o1rer1z60p2x&dl=1", |
17 | 17 | "https://www.dropbox.com/scl/fi/66yr9prze1pfihsrv387n/suncet_mirror_scatter_psf_baffled.fits?rlkey=ucy6w8qpldf5gx1po89xpq0ya&dl=1", |
18 | 18 | "https://www.dropbox.com/scl/fi/g9r7sei24ee2w7d18xi4j/suncet_diffraction_patterns_2k_20250224.fits?rlkey=4b2tcgps8bzcg6felk8h4t4sp&dl=1", |
19 | | - "https://www.dropbox.com/scl/fi/m62dx8aoqt37ne61lzo66/m1_sn2_final.csv?rlkey=593rjhy8mam8qjbswd2enza1f&dl=1"] # dl=1 is important |
| 19 | + "https://www.dropbox.com/scl/fi/m62dx8aoqt37ne61lzo66/m1_sn2_final.csv?rlkey=593rjhy8mam8qjbswd2enza1f&dl=1", |
| 20 | + "https://www.dropbox.com/scl/fi/rlgszvwuww3jz2kdkp8ws/m2_sn3_final.csv?rlkey=njyrw0cegur2nss5eleu4q1w0&dl=1"] # dl=1 is important |
20 | 21 |
|
21 | 22 | def run(): |
22 | 23 | if os.getenv('suncet_data') == None: |
@@ -44,8 +45,8 @@ def run(): |
44 | 45 | mirror_scatter_path.mkdir(parents=True, exist_ok=True) |
45 | 46 | diffraction_path = Path(os.getenv('suncet_data') + '/filter_mesh_diffraction') |
46 | 47 | diffraction_path.mkdir(parents=True, exist_ok=True) |
47 | | - m1_sn2_path = Path(os.getenv('suncet_data') + '/mirror_reflectivity/2024-03-21 rigaku measurements final/') |
48 | | - m1_sn2_path.mkdir(parents=True, exist_ok=True) |
| 48 | + measured_reflectivity_path = Path(os.getenv('suncet_data') + '/mirror_reflectivity/2024-03-21 rigaku measurements final/') |
| 49 | + measured_reflectivity_path.mkdir(parents=True, exist_ok=True) |
49 | 50 |
|
50 | 51 | ssl._create_default_https_context = ssl._create_unverified_context |
51 | 52 |
|
@@ -73,7 +74,9 @@ def run(): |
73 | 74 | elif filename.startswith('suncet_diffraction_patterns_'): |
74 | 75 | filename = diffraction_path / filename |
75 | 76 | elif filename.startswith('m1_sn2_final'): |
76 | | - filename = m1_sn2_path / filename |
| 77 | + filename = measured_reflectivity_path / filename |
| 78 | + elif filename.startswith('m2_sn3_final'): |
| 79 | + filename = measured_reflectivity_path / filename |
77 | 80 | with open(filename, "wb") as f: |
78 | 81 | print('downloading file: {}'.format(filename)) |
79 | 82 | f.write(data) |
|
0 commit comments