Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
68e469b0
Commit
68e469b0
authored
Jul 11, 2023
by
BO ZHANG
🏀
Browse files
init CRDS
parent
98c50a29
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/crds.py
View file @
68e469b0
import
functools
import
os
from
crds
import
client
...
...
@@ -69,7 +70,7 @@ class CRDS:
d
=
client
.
api
.
get_file_info
(
self
.
operational_context
,
refs
[
ref_type
])
if
d
:
fp
=
os
.
path
.
join
(
self
.
crdsroot
,
"references"
,
d
[
"file_path"
])
assert
os
.
path
.
exists
,
f
"File path [
{
fp
}
] does not exist!"
assert
os
.
path
.
exists
(
fp
)
,
f
"File path [
{
fp
}
] does not exist!"
refs_fp
[
ref_type
]
=
fp
else
:
print
(
f
"Failed to get file info for [
{
ref_type
}
:
{
refs
[
ref_type
]
}
]"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment