Skip to content

Commit

Permalink
improved print and using downloaded_files var
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed May 2, 2024
1 parent faa2150 commit c8d05bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/openmc_data/depletion/generate_jendl_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def main():
output_path=Path(".")
)

extract([file], Path("."))
extract([downloaded_file], Path("."))
decay_files = list(Path('.').rglob(details["decay_files"]))

fpy_files = args.fpy
Expand All @@ -101,7 +101,7 @@ def main():
output_path=Path(".")
)

extract([file], Path("."))
extract([downloaded_file], Path("."))
fpy_files = list(Path('.').rglob(details["nfy_files"]))

# check files exist
Expand Down
4 changes: 2 additions & 2 deletions src/openmc_data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ def extract(
extraction_dir : str
The directory to extract the files to.
del_compressed_file : bool
Wheather the compressed file should be deleted (True) or not (False)
Whether the compressed file should be deleted (True) or not (False)
verbose : bool
Controls the printing to terminal, if True filenames of the extracted
files will be printed.
"""
Path.mkdir(extraction_dir, parents=True, exist_ok=True)

print(compressed_files)
print(f'Extracting {compressed_files} to {extraction_dir}')
if not isinstance(compressed_files, Iterable):
compressed_files = [compressed_files]

Expand Down

0 comments on commit c8d05bd

Please sign in to comment.