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
!1669
Catchup with main
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Catchup with main
catchup-with-main
into
2.8.4-DEVELOPMENT
Overview
0
Commits
27
Pipelines
4
Changes
16
Merged
Charlotte Hausman
requested to merge
catchup-with-main
into
2.8.4-DEVELOPMENT
10 months ago
Overview
0
Commits
27
Pipelines
4
Changes
16
Expand
pulling in final updates from 2.8.3
0
0
Merge request reports
Compare
2.8.4-DEVELOPMENT
version 3
32a37f83
10 months ago
version 2
a405f5a1
10 months ago
version 1
ee11164c
10 months ago
2.8.4-DEVELOPMENT (base)
and
latest version
latest version
6f20e4be
27 commits,
10 months ago
version 3
32a37f83
26 commits,
10 months ago
version 2
a405f5a1
25 commits,
10 months ago
version 1
ee11164c
24 commits,
10 months ago
16 files
+
135
−
21
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
apps/cli/executables/pexable/casa_envoy/casa_envoy/foundation.py
+
14
−
0
Options
@@ -55,6 +55,7 @@ class GeneralFoundation(FoundationIF):
def
__init__
(
self
,
parameters
:
dict
,
metadata
:
AbstractTextFile
):
self
.
logger
=
logging
.
getLogger
(
"
casa_envoy
"
)
self
.
parent_path
=
parameters
[
"
parent_path
"
]
self
.
rawdata_dir
=
self
.
parent_path
/
"
rawdata
"
self
.
working_dir
=
self
.
parent_path
/
"
working
"
self
.
content
=
json
.
loads
(
metadata
.
content
)
@@ -75,8 +76,21 @@ class GeneralFoundation(FoundationIF):
if
stripped_file
:
shutil
.
copy
(
stripped_file
,
self
.
working_dir
)
self
.
copy_into_rawdata
()
self
.
logger
.
info
(
"
General data foundation complete!
"
)
def
copy_into_rawdata
(
self
):
"""
CASA expects some files from the
'
working
'
directory to also exist next to the data in the
'
rawdata
'
directory.
:return:
"""
# Copy files that need to exist next to the data into the rawdata directory
for
file
in
Path
(
self
.
working_dir
).
glob
(
'
*flagtargetstemplate.txt
'
):
if
Path
(
file
).
exists
():
shutil
.
copy
(
file
,
self
.
rawdata_dir
)
class
RestoreFoundation
(
FoundationIF
):
"""
Loading