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
ae037f37
Commit
ae037f37
authored
Jan 05, 2026
by
BO ZHANG
🏀
Browse files
add ccds.validate & ccds.list
parent
475ea658
Pipeline
#11700
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_common/ccds
/ccds
.py
→
csst_common/ccds.py
View file @
ae037f37
...
...
@@ -113,6 +113,14 @@ class CCDS:
else
:
print
(
f
"refs_abspath:
{
refs_abspath
}
"
)
def
validate
(
self
,
pmapname
:
str
)
->
bool
:
"""Validate pmap."""
return
client
.
api
.
check_mapping_exists
(
pmapname
)
def
list
(
self
):
"""List all pmap."""
return
client
.
api
.
list_mappings
(
glob_pattern
=
"*.pmap"
)
if
__name__
==
"__main__"
:
ccds
=
CCDS
()
...
...
csst_common/ccds/__init__.py
deleted
100644 → 0
View file @
475ea658
"""
Identifier: csst_common/ccds/__init__.py
Name: __init__.py
Description: CCDS wrapper
Author: Bo Zhang
Created: 2022-09-13
Modified-History:
2023-12-15, Bo Zhang, created
2023-12-15, Bo Zhang, add CCDS wrapper
"""
from
.ccds
import
CCDS
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