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
7c008646
Commit
7c008646
authored
Oct 28, 2024
by
BO ZHANG
🏀
Browse files
remove references
parent
943e120c
Pipeline
#7146
passed with stage
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
csst_common/ccds/ccds.py
View file @
7c008646
...
@@ -8,6 +8,7 @@ Modified-History:
...
@@ -8,6 +8,7 @@ Modified-History:
2023-07-08, Bo Zhang, created
2023-07-08, Bo Zhang, created
2023-12-15, Bo Zhang, add module header
2023-12-15, Bo Zhang, add module header
"""
"""
import
os
import
os
from
ccds
import
client
from
ccds
import
client
...
@@ -87,7 +88,7 @@ class CCDS:
...
@@ -87,7 +88,7 @@ class CCDS:
for
ref_type
in
refs
.
keys
():
for
ref_type
in
refs
.
keys
():
d
=
client
.
api
.
get_file_info
(
self
.
operational_context
,
refs
[
ref_type
])
d
=
client
.
api
.
get_file_info
(
self
.
operational_context
,
refs
[
ref_type
])
if
d
:
if
d
:
fp
=
os
.
path
.
join
(
self
.
ccds_root
,
"references"
,
d
[
"file_path"
])
fp
=
os
.
path
.
join
(
self
.
ccds_root
,
d
[
"file_path"
])
assert
os
.
path
.
exists
(
fp
),
f
"File path [
{
fp
}
] does not exist!"
assert
os
.
path
.
exists
(
fp
),
f
"File path [
{
fp
}
] does not exist!"
refs_fp
[
ref_type
]
=
fp
refs_fp
[
ref_type
]
=
fp
else
:
else
:
...
...
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