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
a5ee2b51
Commit
a5ee2b51
authored
Dec 15, 2023
by
BO ZHANG
🏀
Browse files
update module headers
parent
f7e79bc6
Pipeline
#2423
failed with stage
Changes
13
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_common/__init__.py
View file @
a5ee2b51
...
@@ -3,17 +3,18 @@ Identifier: csst_common/__init__.py
...
@@ -3,17 +3,18 @@ Identifier: csst_common/__init__.py
Name: __init__.py
Name: __init__.py
Description: csst_common package
Description: csst_common package
Author: Bo Zhang
Author: Bo Zhang
Created: 2022-09-1
3
Created: 2022-09-
2
1
Modified-History:
Modified-History:
2023-12-15, Bo Zhang, created
2022-09-21, Bo Zhang, created
2023-09-22, Bo Zhang, updates
2023-12-15, Bo Zhang, add module header
2023-12-15, Bo Zhang, add module header
"""
"""
from
.status
import
CsstResult
,
CsstStatus
from
.pipeline
import
Pipeline
from
.ccds
import
CCDS
from
.ccds
import
CCDS
from
.dfs
import
DFS
from
.decorator
import
parameterized_module_decorator
from
.decorator
import
parameterized_module_decorator
from
.dfs
import
DFS
from
.file
import
File
from
.file
import
File
from
.pipeline
import
Pipeline
from
.status
import
CsstResult
,
CsstStatus
__version__
=
"0.0.2"
__version__
=
"0.0.2"
csst_common/data_manager.py
View file @
a5ee2b51
...
@@ -30,11 +30,10 @@ from csst_dfs_api.facility.level1prc import Level1PrcApi
...
@@ -30,11 +30,10 @@ from csst_dfs_api.facility.level1prc import Level1PrcApi
from
csst_dfs_api.mbi.level2
import
Level2DataApi
as
MbiLevel2DataApi
from
csst_dfs_api.mbi.level2
import
Level2DataApi
as
MbiLevel2DataApi
from
csst_dfs_api.sls.level2spectra
import
Level2SpectraApi
as
SlsLevel2DataApi
from
csst_dfs_api.sls.level2spectra
import
Level2SpectraApi
as
SlsLevel2DataApi
from
.dfs
import
DFS
from
.logger
import
get_logger
from
.logger
import
get_logger
from
.params
import
CSST_PARAMS
as
CP
from
.params
import
CSST_PARAMS
as
CP
from
.time
import
now
from
.time
import
now
from
.ccds
import
CCDS
from
.dfs
import
DFS
class
CsstMsDataManager
:
class
CsstMsDataManager
:
...
...
csst_common/decorator.py
View file @
a5ee2b51
...
@@ -3,9 +3,9 @@ Identifier: csst_common/decorator.py
...
@@ -3,9 +3,9 @@ Identifier: csst_common/decorator.py
Name: decorator.py
Name: decorator.py
Description: module wrapper
Description: module wrapper
Author: Bo Zhang
Author: Bo Zhang
Created: 202
2-09
-1
3
Created: 202
3-12
-1
0
Modified-History:
Modified-History:
2023-12-1
5
, Bo Zhang,
c
re
ated
2023-12-1
0
, Bo Zhang, re
write ModuleResult and decorator
2023-12-15, Bo Zhang, add module header
2023-12-15, Bo Zhang, add module header
"""
"""
import
functools
import
functools
...
...
csst_common/dfs.py
View file @
a5ee2b51
"""
"""
Identifier: csst_common/dfs.py
Identifier: csst_common/dfs.py
Name: dfs.py
Name: dfs.py
Description:
csst_common package
Description:
DFS wrapper
Author: Bo Zhang
Author: Bo Zhang
Created: 2023-07-08
Created: 2023-07-08
Modified-History:
Modified-History:
...
...
csst_common/file.py
View file @
a5ee2b51
"""
"""
Identifier: csst_common/
__init__
.py
Identifier: csst_common/
file
.py
Name:
__init__
.py
Name:
file
.py
Description:
csst_common package
Description:
file operation
Author: Bo Zhang
Author: Bo Zhang
Created: 2023-12-13
Created: 2023-12-13
Modified-History:
Modified-History:
...
...
csst_common/io.py
View file @
a5ee2b51
"""
Identifier: csst_common/io.py
Name: io.py
Description: IO module
Author: Bo Zhang
Created: 2023-12-13
Modified-History:
2023-12-10, Bo Zhang, created
2023-12-15, Bo Zhang, add verify_checksum and append_header, add module header
"""
import
warnings
import
warnings
from
copy
import
deepcopy
from
copy
import
deepcopy
...
...
csst_common/logger.py
View file @
a5ee2b51
"""
"""
Identifier:
KSC-SJ4-
csst_common/logger.py
Identifier: csst_common/logger.py
Name: logger.py
Name: logger.py
Description: CSST logger
Description: CSST logger
Author: Bo Zhang
Author: Bo Zhang
...
@@ -8,6 +8,7 @@ Modified-History:
...
@@ -8,6 +8,7 @@ Modified-History:
2022-10-04, Bo Zhang, created
2022-10-04, Bo Zhang, created
2022-10-04, Bo Zhang, added get_logger
2022-10-04, Bo Zhang, added get_logger
2022-10-07, Bo Zhang, added Numpydoc docstring
2022-10-07, Bo Zhang, added Numpydoc docstring
2023-12-10, Bo Zhang, add type annotation
"""
"""
import
logging
import
logging
from
typing
import
Optional
from
typing
import
Optional
...
...
csst_common/params.py
View file @
a5ee2b51
"""
"""
Identifier:
KSC-SJ4-
csst_common/params.py
Identifier: csst_common/params.py
Name: params.py
Name: params.py
Description: CSST parameters
Description: CSST parameters
Author: Bo Zhang
Author: Bo Zhang
...
...
csst_common/pipeline.py
View file @
a5ee2b51
"""
Identifier: csst_common/pipeline.py
Name: file.py
Description: pipeline operation
Author: Bo Zhang
Created: 2023-12-13
Modified-History:
2023-07-11, Bo Zhang, created
2023-07-11, Bo Zhang, add Pipeline class
2023-12-10, Bo Zhang, update Pipeline
2023-12-15, Bo Zhang, add module header
"""
import
json
import
json
import
os
import
os
import
subprocess
import
subprocess
...
@@ -5,9 +17,10 @@ import warnings
...
@@ -5,9 +17,10 @@ import warnings
from
typing
import
Any
from
typing
import
Any
from
astropy
import
time
from
astropy
import
time
from
.file
import
File
from
.ccds
import
CCDS
from
.ccds
import
CCDS
from
.dfs
import
DFS
from
.dfs
import
DFS
from
.file
import
File
from
.logger
import
get_logger
from
.logger
import
get_logger
...
...
csst_common/status.py
View file @
a5ee2b51
"""
"""
Identifier:
KSC-SJ4-
csst_common/status.py
Identifier: csst_common/status.py
Name: status.py
Name: status.py
Description: CSST status
Description: CSST status
Author: Bo Zhang
Author: Bo Zhang
...
...
csst_common/utils/__init__.py
View file @
a5ee2b51
"""
Identifier: csst_common/utils/__init__.py
Name: __init__.py
Description: CSST utils
Author: Bo Zhang
Created: 2022-09-19
Modified-History:
2022-09-19, Bo Zhang, created
2023-12-15, Bo Zhang, add module header
"""
from
._module_docstr
import
ModuleHeader
from
._module_docstr
import
ModuleHeader
from
.tempfile
import
randfile
from
.tempfile
import
randfile
csst_common/utils/_module_docstr.py
View file @
a5ee2b51
"""
"""
Identifier:
KSC-SJ4-
csst_common/utils.py
Identifier: csst_common/utils
/_module_docstr
.py
Name:
utils
.py
Name:
_module_docstr
.py
Description:
This
module
collects a set of utilities for CSST L1 pipeline.
Description: module
docstring
Author: Bo Zhang
Author: Bo Zhang
Created: 2022-09-06
Created: 2022-09-06
Modified-History:
Modified-History:
2022-09-06, Bo Zhang, Added header_str
2022-09-06, Bo Zhang, Added header_str
2022-09-13, Bo Zhang, Added ModuleHeader class
2022-09-19, Bo Zhang, Added ModuleHeader class
2023-12-15, Bo Zhang, reformat module headers
"""
"""
import
datetime
import
datetime
import
glob
import
glob
...
...
csst_common/utils/tempfile.py
View file @
a5ee2b51
"""
Identifier: csst_common/utils/__init__.py
Name: __init__.py
Description: CSST utils
Author: Bo Zhang
Created: 2022-09-19
Modified-History:
2022-09-19, Bo Zhang, created
2023-12-15, Bo Zhang, add module header
"""
import
secrets
import
secrets
import
string
import
string
...
...
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