Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass exclude_paths to bootstrap_load() - there are different BaseLoder objects in main() #259

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
//"args": [ "-v", "1", "--skipuntil_regex", "--regex", "2023/20230310m1/ZTopo.grd$", "--limit", "10" ],
//"args": [ "-v", "1", "--skipuntil_regex", "--regex", "2024/20240510m1/ZTopo.grd$", "--limit", "10" ],
//"args": [ "-v", "1", "--skipuntil_regex", "--regex", "MappingAUVOps2008/20080320/ZTopo.grd$", "--limit", "3" ],
"args": [ "-v", "1", "--skipuntil_regex", "--regex", "swathdata/surveys/NOAA/AHI-06-05ZTopo.grd$", "--limit", "2" ],
//"args": ["-v", "1", "--limit", "5", "--clobber", "--noinput"],
//"args": ["--bootstrap", "-v 1", "--clobber", "--limit", "5", "--noinput"],
//"args": ["--bootstrap", "-v 2", "--limit", "10" "--clobber", "--noinput"],
Expand All @@ -68,6 +69,7 @@
//"args": ["--fnv", "-v", "2", "--limit", "2", "--skipuntil", "2022/20220205m1"]
//"args": ["--fnv", "-v", "2", "--limit", "2", "--skipuntil", "2020/20200804m1"]
//"args": ["--fnv", "-v", "2", "--limit", "2", "--skipuntil", "2023/20230310m1"]
//"args": ["--fnv", "-v", "2", "--limit", "2", "--skipuntil", "swathdata/surveys/NOAA/AHI-06-05"]
//"args": ["--fnv", "-v", "2"],
//"args": [ "--compilation", "-v", "1", "--skipuntil", "swathdata/surveys/UH/kok0714", "--log_file", "compilation.txt" ],
// Supporting Compilation load testing, first mission found in --compilation: 2019/20190627d1/multibeam
Expand All @@ -83,7 +85,7 @@
//"args": ["--compilation", "-v", "1", "--skipuntil", "2022/AxialSeamount/FiguresCaress", "--limit", "10", "--log_file", "compilation.txt"],
//"args": ["--compilation", "-v", "1"],
//"args": ["--spreadsheets", "-v", "1"],
"args": ["-v", "2", "--last_n_days", "0.5"],
//"args": ["-v", "2", "--last_n_days", "0.5"],
//"args": ["-v", "1", "--spreadsheets", "--parent_dir", "2024", "--append_to_log_file"],
//"args": ["-v", "1", "--spreadsheets"],
//"args": ["-v", "1", "--compilation", "--last_n_days", "30"],
Expand Down
8 changes: 5 additions & 3 deletions smdb/scripts/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -1856,8 +1856,8 @@ def run(*args):
elif bl.args.spreadsheets:
spreadsheets_load()
else:
exclude_file_load()
missions_saved = bootstrap_load()
exclude_paths = exclude_file_load()
missions_saved = bootstrap_load(exclude_paths)
notes_load(missions_saved)
fnv_load(missions_saved)
compilation_load()
Expand All @@ -1873,10 +1873,12 @@ def exclude_file_load():
ef.read_exclude_path_xlsxs()
ef.write_exclude_path_csvs()
ef.write_consolidated_exclude_list()
return ef.exclude_paths


def bootstrap_load() -> list:
def bootstrap_load(exclude_paths) -> list:
bs = BootStrapper()
bs.exclude_paths = exclude_paths
bs.process_command_line()
bs.load_from_grds()
return bs.missions_saved
Expand Down