Skip to content

Commit e6ca313

Browse files
committed
clean up readme tests data directory
- remove unused data files - update README to list what tests or using what files
1 parent 084172a commit e6ca313

File tree

5 files changed

+154
-8647
lines changed

5 files changed

+154
-8647
lines changed

tests/data/README.md

Lines changed: 154 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,183 @@
11
# TEST FILES/DATA README
22

33
The data within this folder is used by the unit tests, located in .../tests/*/*.
4+
In some cases its the location of the given file being used in the test rather than its contents.
45

56
## Files:
67

78
**baseline_10klines_2.0.db**
89
Small (10k lines) version of pointing database located at /demo/baseline_v2.0_1yr.db.
910
Used by:
11+
- test_combined_data_reading.py
1012
- test_createResultsSQLDatabase.py
1113
- test_makeConfigPP.py
12-
- test_makeConfigOIF.py
13-
- test_makeMultiConfigOif.py
14+
- test_makeConfigOIF.py
1415
- test_makeSLURMscript.py
16+
- test_PPCommandLineParser.py
17+
- test_PPConfigParser.py
18+
- test_PPMatchPointingToObservations.py
1519
- test_PPReadAllInput.py
1620
- test_PPReadPointingDatabase.py
1721

18-
**config_test\*.ini**
19-
Example OIF config files with standardised names.
20-
Used by:
21-
- test_makeMultiConfigOIF.py
22-
- test_makeSLURMscript.py
23-
2422
**detectors_corners.csv**
2523
Corners of the LSST camera footprint.
2624
Used by:
2725
- test_makeConfigPP.py
26+
- test_PPApplyFOVFilter.py
27+
- test_PPConfigParser.py
2828
- test_PPFootprintFilter.py
2929

30-
**lsst-total-r.dat**
31-
Throughput of LSST per wavelength.
32-
Used by:
33-
- /sorcha/lsstcomet/tests/test_model.py
30+
**orbit_test_files/orbit_bcart.csv**
31+
Barycentric cartesian orbit format test input file
32+
Used by:
33+
-test_OrbitAuxReader.py
3434

35-
**makeConfigOIF_*.ini**
36-
Example OIF config files.
37-
Used by:
38-
- test_makeConfigOIF.py
35+
**orbit_test_files/orbit_bcom.csv**
36+
Barycentric cometary orbit format test input file
37+
Used by:
38+
-test_OrbitAuxReader.py
3939

40-
**makeConfigPP_ini**
41-
Example SSPP config file.
42-
Used by:
43-
- test_makeConfigPP.py
40+
**orbit_test_files/orbit_bkep.csv**
41+
Barycentric Keplarian orbit format test input file
42+
Used by:
43+
-test_OrbitAuxReader.py
44+
45+
**orbit_test_files/orbit_cart.csv**
46+
Heliocentric cartesian orbit format test input file
47+
Used by:
48+
-test_OrbitAuxReader.py
49+
50+
**orbit_cart_wrong_cols.csv**
51+
Heliocentric cartesian orbit format test input file with incorrect headers
52+
Used by:
53+
-test_OrbitAuxReader.py
54+
55+
**orbit_test_files/orbit_com.csv**
56+
Heliocentric cometary orbit format test input file
57+
Used by:
58+
-test_OrbitAuxReader.py
59+
60+
**orbit_test_files.orbit_com_wrong_cols.csv**
61+
Heliocentric cometary orbit format test input file with incorrect columns
62+
Used by:
63+
-test_OrbitAuxReader.py
64+
65+
**orbit_test_files/orbit_extra_cols.csv**
66+
Heliocentric cartiesian orbit format test input file with extra columns
67+
Used by:
68+
-test_OrbitAuxReader.py
4469

45-
**makeMultiConfigOIF_test\*.ini**
46-
Example OIF config files.
70+
**orbit_test_files/orbit_kep.csv**
71+
Heliocentric Keplarian orbit format test input file
72+
Used by:
73+
-test_OrbitAuxReader.py
74+
75+
**orbit_test_files/orbit_kep_wrong_cols.csv**
76+
Heliocentric Keplarian orbit format test input file with incorrect columns
77+
Used by:
78+
-test_OrbitAuxReader.py
79+
80+
**orbit_test_files/orbit_unknown_format.csv**
81+
Orbit input file with unallowed orbit format
82+
Used by:
83+
-test_OrbitAuxReader.py
84+
85+
86+
**makeConfigPP_config.ini**
87+
Example Sorcha config file.
4788
Used by:
48-
- test_makeMultiConfigOIF.py
89+
- test_makeConfigPP.py
4990

5091
**makeSLURMscript_*.sh**
5192
Example SLURM scripts.
5293
Used by:
5394
- test_makeSLURMscript.py
5495

55-
**oif_temptest.csv**
56-
Example OIF output with standardised name.
57-
Used by:
58-
- test_createTemporaryDatabases.py
59-
60-
**oiftestoutput_header.csv**
61-
Example OIF output with extended header.
62-
Used by:
63-
- test_PPReadOif.py
96+
**ObsCodes_test.json**
97+
Example MPC-style observatory codes files
98+
Used by:
99+
- test_simulation_parsing.py
64100

65101
**oiftestoutput.csv**
66-
Example OIF output in .csv format.
102+
Example ephemeris output in .csv format.
67103
Used by:
68-
- test_PPReadOif.py
104+
- test_CSVReader.py
105+
- test_OIFReader.py
106+
107+
**oiftestoutput.h5**
108+
Example ephemeris output, in HDF5 format
109+
Used by:
110+
- test_OIFReader.py
111+
- tests/readers/test_HDF5Reader.py
69112

70113
**oiftestoutput.txt**
71-
Example OIF output, whitespace-separated.
114+
Example ephemeris output, whitespace-separated.
72115
Used by:
73-
- test_createResultsSQLDatabase.py
116+
- test_CombinedDataReader.py
117+
- test_createResultsSQLDatabase.py
118+
- test_CSVReader.py
119+
- test_PPJoinEphemeridesAndOrbits.py
74120
- test_makeConfigOIF.py
121+
- test_makeSLURMscript.py
122+
- test_OIFReader.py
123+
- test_PPCheckInputObjectIDs.py
124+
- test_PPCommandLineParser.py
75125
- test_PPJoinEphemeridesAndOrbits.py
76126
- test_PPReadEphemerides.py
77-
- test_PPReadOif.py
78127

79-
**orbits_test\*.txt**
128+
**oiftestoutput_comment.csv**
129+
Example ephemeris output in .csv format when the columns
130+
are not the start of row 0 but later in the file after a header
131+
Used by:
132+
- tests/readers/test_CSVReader.py
133+
134+
**orbits_test1.txt**
80135
Example orbits files with standardised names.
81136
Used by:
82-
- test_makeMultiConfigOIf.py
83137
- test_makeSLURMscript.py
84138

85-
**params_test\*.txt**
86-
Example physical parameters files with standardised names.
139+
**orbits_test2.txt**
140+
Example orbits files with standardised names.
87141
Used by:
88-
- test_makeMultiConfigOIf.py
89-
- test_makeSLURMscript.py
142+
- test_makeSLURMscript.py
143+
144+
**params_test1.txt**
145+
Example physical parameters files with standardised names.
146+
Used by:
147+
148+
**params_test2.txt**
149+
Example physical parameters files with standardised names.
150+
Used by:
90151

91152
**PPReadAllInput_oif.txt**
92153
Example OIF output, compatible with pointing database.
93154
Used by:
94-
- test_PPReadAllInput.py
155+
- test_combined_data_reading.py
156+
- test_CombinedDataReader.py
95157

96158
**PPReadAllInput_orbits.des**
97159
Example orbits file, compatible with pointing database.
98160
Used by:
99-
- test_PPReadAllInput.py
161+
- test_combined_data_reading.py
162+
- test_CombinedDataReader.py
163+
- test_ephemeris_generation.py
100164

101165
**PPReadAllInput_params.txt**
102166
Example physical parameters file, compatible with pointing databse.
103167
Used by:
104-
- test_PPReadAllInput.py
168+
- test_combined_data_reading.py
169+
- test_CombinedDataReader.py
170+
- test_ephemeris_generation.py
105171

106172
**PPReadOrbitFile_bad.txt**
107173
Example orbits file with bad column headers.
108174
Used by:
109-
- test_PPReadOrbitFile.py
175+
- test_OrbitAuxReader.py
110176

111177
**sqlresults.db**
112-
Example output in SQL database form.
178+
Example sorcha output in SQL database form.
113179
Used by:
114-
- test_createResultsSQLDatabase.py
115-
- test_PPCommandLineParser
180+
- test_createResultsSQLDatabase.py
116181

117182
**test_input_fullobs.csv**
118183
Example of full dataframe of observations created by sorcha.py.
@@ -123,62 +188,74 @@ Used by:
123188
- test_PPDropObservations.py
124189
- test_PPFootprintFilter.py
125190
- test_PPLinkingFilter.py
191+
- test_PPOutput.py
192+
- test_PPRandomizeMeasurements.py
126193

127194
**test_PPConfig.ini**
128-
Example SSPP config file.
195+
Test Sorcha config file.
129196
Used by:
130-
- test_makeSLURMscript.py
131-
- test_PPCommandLineParser.py
132-
- test_PPConfigParser.py
133-
- test_PPOutput.py
134-
- test_PPRandomizeMeasurements.py
135-
- test_PPReadAllInput.py
197+
- test_combined_data_reading.py
198+
- test_makeSLURMscript.py
199+
- test_PPCommandLineParser.py
200+
136201

137202
**test_PPPrintConfigsToLog.txt**
138203
Example of an SSPP log file.
139204
Used by:
140-
- PPPrintConfigsToLog.py
205+
- test_PPConfigParser.py
141206

142207
**testcolour.csv**
143208
Example physical parameters file, .csv format.
144209
Used by:
145-
- test_PPreadPhysicalParameters.py
210+
- test_CSVReader.py
146211

147212
**testcolour.txt**
148213
Example physical parameters file, whitespace-separated.
149214
Used by:
150-
- test_createResultsSQLDatabase.py
151-
- test_PPCheckInputObjectIDs.py
152-
- test_PPCommandLineParser.py
153-
- test_PPConfigParser.py
154-
- test_PPGetMainFilterAndColourOffsets.py
155-
- test_PPJoinEphemeridesAndParameters.py
156-
- test_PPReadOif.py
157-
- test_PPReadPhysicalParameters.py
158-
- test_PPReadTemporaryEphemerisDatabase.py
215+
- test_createResultsSQLDatabase.py
216+
- test_CSVReader.py
217+
- test_OIFReader.py
218+
- test_PPCheckInputObjectIDs.py
219+
- test_PPCommandLineParser.py
220+
- test_PPConfigParser.py
221+
- test_PPGetMainFilterAndColourOffsets.py
222+
- test_PPJoinEphemeridesAndParameters.py
159223

160224
**testcomet.txt**
161225
Example cometary parameters file.
162226
Used by:
163-
- test_PPReadCometaryParameters.py
227+
- test_CSVReader.py
228+
- test_PPCommandLineParser.py
229+
230+
**test_ephem_config.ini**
231+
Example Sorcha config file with ephemeris keywords.
232+
Used by:
233+
- test_ephemeris_generation.py
164234

165235
**testobs_clean.csv**
166236
Reduced version of test_input_fullobs.csv.
167237
Used by:
168238
- test_createResultsSQLDatabase.py
169239

240+
**testdb_PPIntermDB.db**
241+
SQL database of epehemeris output. Functionality no longer used but kept in for
242+
possible future software development.
243+
Used by:
244+
- test_DatabaseReader.py
245+
170246
**testorb.csv**
171247
Example orbits file, .csv format.
172248
Used by:
173-
- test_PPReadOrbitFile.py
249+
- test_CSVReader.py
250+
- test_OrbitAuxReader.py
174251

175252
**testorb.des**
176253
Example orbits file, whitespace-separated.
177-
Used by:
178-
- test_createResultsSQLDatabase.py
179-
- test_makeConfigOIF.py
180-
- test_makeMultiConfigOIf.py
181-
- test_PPCheckInputObjectIDs.py
182-
- test_PPCommandLineParser.py
183-
- test_PPConfigParser.py
254+
Used by:
255+
- test_createResultsSQLDatabase.py
256+
- test_CSVReader.py
257+
- test_OrbitAuxReader.py
258+
- test_PPCheckInputObjectIDs.py
259+
- test_PPCommandLineParser.py
260+
- test_PPConfigParser.py
184261
- test_PPJoinEphemeridesAndOrbits.py

0 commit comments

Comments
 (0)