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
4
1 unresolved thread
Hide all comments
Merged
Charlotte Hausman
requested to merge
testing_barrage_fixes
into
main
3 years ago
Overview
1
Commits
3
Pipelines
2
Changes
4
1 unresolved thread
Hide all comments
Expand
0
0
Merge request reports
Compare
main
version 1
28a042f5
3 years ago
main (base)
and
latest version
latest version
6089a94f
3 commits,
3 years ago
version 1
28a042f5
3 commits,
3 years ago
4 files
+
136
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
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