-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sc2_replaypack_processor): fixing maps directory as arg
- Loading branch information
Showing
4 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
src/datasetpreparator/sc2/sc2egset_replaypack_processor/utils/download_maps.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
import logging | ||
from pathlib import Path | ||
from datasetpreparator.sc2.sc2egset_replaypack_processor.utils.multiprocess import ( | ||
pre_process_download_maps, | ||
) | ||
from datasetpreparator.sc2.sc2egset_replaypack_processor.utils.replaypack_processor_args import ( | ||
ReplaypackProcessorArguments, | ||
SC2InfoExtractorGoArguments, | ||
) | ||
|
||
|
||
def sc2infoextractorgo_map_download(arguments: ReplaypackProcessorArguments): | ||
def sc2infoextractorgo_map_download( | ||
input_path: Path, | ||
maps_directory: Path, | ||
) -> None: | ||
# Pre-process, download all maps: | ||
logging.info("Downloading all maps...") | ||
map_download_arguments = SC2InfoExtractorGoArguments.get_download_maps_args( | ||
processing_input=arguments.input_path, output=arguments.output_path | ||
processing_input=input_path, | ||
maps_directory=maps_directory, | ||
) | ||
pre_process_download_maps(arguments=map_download_arguments) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters