Skip to content

Commit

Permalink
remove more whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGrumm-NOAA committed Dec 10, 2024
1 parent a1f03ec commit 17f7e6c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ush/python/pygfs/task/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def configure(self, fetch_dict: Dict[str, Any]):
fetch_parm = os.path.join(fetch_dict.PARMgfs, "fetch")

parsed_fetch = parse_j2yaml(os.path.join(fetch_parm, fetch_yaml),
fetch_dict)
fetch_dict)
return parsed_fetch

@logit(logger)
Expand All @@ -65,26 +65,26 @@ def execute_pull_data(self, atardir_set: Dict[str, Any]) -> None:
Parameters
----------
atardir_set: Dict[str, Any],
atardir_set: Dict[str, Any],
Dict defining set of tarballs to pull and where to put them.
Return
None
"""

if len(f_names) <= 0: # Abort if no files
raise FileNotFoundError("FATAL ERROR: The tar ball has no files") # DG - add name
raise FileNotFoundError("FATAL ERROR: The tar ball has no files")
f_names = atardir_set.untar.contents
on_hpss = atardir_set.untar.on_hpss
dest = atardir_set.untar.destination
# Select action whether no_hpss is True or not, and pull these data from
# tape or locally and place where it needs to go
# Select action whether no_hpss is True or not, and pull these
# data from tape or locally and place where it needs to go
# DG - these need testing
if on_hpss is True: # htar all files in fnames
if on_hpss is True: # htar all files in fnames
htar_obj = Htar.Htar()
htar_obj.cvf(dest, f_names)

else: # tar all files in fnames
else: # tar all files in fnames
with tarfile.open(dest, "w") as tar:
for filename in f_names:
tar.add(filename)

0 comments on commit 17f7e6c

Please sign in to comment.