Skip to content
Snippets Groups Projects

Post Apocalypse Testing Round 4 - Restores

Merged Charlotte Hausman requested to merge testing_barrage_fixes into main
1 unresolved thread
4 files
+ 136
2
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -7,6 +7,8 @@ import sys
import tarfile
from pathlib import Path
from distutils.dir_util import copy_tree
from casa_envoy.schema import AbstractTextFile
from casa_envoy.interfaces import FoundationIF
@@ -42,8 +44,10 @@ class RestoreFoundation(FoundationIF):
if Path(cal_path).exists():
calibration = tarfile.open(cal_path)
# extract to products
calibration.extractall(path="./products")
calibration.extractall("./rawdata")
calibration.close()
src = "./rawdata/products"
copy_tree(src, "./products/")
else:
self.logger.error(f"ERROR: calibration tar file {cal_name} not found in rawdata!")
# abort since required data not found
Loading