File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 20
20
lat_tube_list_file: path to yaml dict matching tubes and bands
21
21
tolerate_stray_files: True
22
22
skip_bad_books: True
23
+ known_bad_books:
24
+ - oper_1736874485_satp3_0000100
25
+ - obs_9999999999_satp0_1111111
23
26
extra_extra_files:
24
27
- Z_bookbinder_log.txt
25
28
extra_files:
@@ -150,6 +153,8 @@ def main(config: str,
150
153
bookcartobsdb .add_obs_columns (col_list )
151
154
if "skip_bad_books" not in config_dict :
152
155
config_dict ["skip_bad_books" ] = False
156
+ if "known_bad_books" not in config_dict :
157
+ config_dict ["known_bad_books" ] = []
153
158
154
159
#How far back we should look
155
160
tnow = time .time ()
@@ -177,6 +182,9 @@ def main(config: str,
177
182
_ , book_id = os .path .split (dirpath )
178
183
if book_id in existing and not overwrite :
179
184
continue
185
+ if book_id in config_dict ["known_bad_books" ]:
186
+ logger .debug (f"{ book_id } known to be bad, skipping it" )
187
+ continue
180
188
found_timestamp = re .search (r"\d{10}" , book_id )#Find the rough timestamp
181
189
if found_timestamp and int (found_timestamp .group ())> tback :
182
190
#Looks like a book folder and young enough
You can’t perform that action at this time.
0 commit comments