Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Merge requests
!359
Post Apocalypse Testing Round 4 - Restores
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Post Apocalypse Testing Round 4 - Restores
testing_barrage_fixes
into
main
Overview
1
Commits
3
Pipelines
2
Changes
1
Merged
Charlotte Hausman
requested to merge
testing_barrage_fixes
into
main
3 years ago
Overview
1
Commits
3
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Viewing commit
aa56a1fb
Prev
Next
Show latest version
1 file
+
1
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
aa56a1fb
restores now run until vela call.
· aa56a1fb
Charlotte Hausman
authored
3 years ago
apps/cli/executables/pexable/casa_envoy/casa_envoy/foundation.py
+
5
−
1
Options
@@ -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