Skip to content

Commit

Permalink
use endswith to clean up scripting (NOAA-EMC#2862)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Sep 17, 2024
1 parent 8b627a1 commit eb4fc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ush/python/pygfs/jedi/jedi.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def extract_tar(self, task_config: AttrDict, tar_dict) -> Dict[str, Any]:

# extract bias correction files from tar file
for tar_file in tar_dict['copy']:
if ".tar" in tar_file[1]:
if tar_file[1].endswith('.tar'):
try:
with tarfile.open(tar_file[1], "r") as tarball:
tarball.extractall(path=os.path.join(task_config.DATA, 'obs'))
Expand Down

0 comments on commit eb4fc37

Please sign in to comment.