Commit a5ee2b51 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

update module headers

parent f7e79bc6
Pipeline #2423 failed with stage
...@@ -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-13 Created: 2022-09-21
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"
...@@ -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:
......
...@@ -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: 2022-09-13 Created: 2023-12-10
Modified-History: Modified-History:
2023-12-15, Bo Zhang, created 2023-12-10, Bo Zhang, rewrite ModuleResult and decorator
2023-12-15, Bo Zhang, add module header 2023-12-15, Bo Zhang, add module header
""" """
import functools import functools
......
""" """
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:
......
""" """
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:
......
"""
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
......
""" """
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
......
""" """
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
......
"""
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
......
""" """
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
......
"""
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
""" """
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
......
"""
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment