Loading doc/source/codestyle.rst +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ Code Style ========== PEP 8 : The Base Python style PEP 8 : the base Python style ----------------------------- Python code should follow **PEP 8** Loading doc/source/csst_common/csst_common.rst +9 −1 Original line number Diff line number Diff line Loading @@ -20,13 +20,19 @@ A class that helps developers to access simulation files. assert_all_detectors=False, # if True, assert all detectors are available datatype="mbi", # "mbi" or "sls" ) # for a quick start .. code-block:: python # for a quick start () dm_mbi = CsstMsDataManager.quickstart( ver_sim="C5.2", datatype="mbi", dir_l1=".", exposure_id=100 # the 100th exposure ) .. code-block:: python # access L0 directory dm_mbi.dir_l0 # access L1 directory Loading @@ -46,6 +52,8 @@ A class that helps developers to access simulation files. # define an L1 file (non-detector-specified) dm_mbi.l1_file("flipped_image.fits") .. code-block:: python # to get bias dm_mbi.get_bias() # to get dark Loading doc/source/csst_common/example_interface.py +1 −1 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ def process_multiple_images( return CsstStatus.PERFECT else: # not all images are properly processed return CsstStatus.WARNING return CsstStatus.ERROR except DeprecationWarning: # this will be written into the log file logger.warning("Suffered DeprecationWarning!") Loading doc/source/packaging.rst +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ official `Python Packaging User Guide`_, and more specifically `here`_. .. _Python Packaging User Guide: https://packaging.python.org/en/latest/ Project Structure Project structure ----------------- An example code structure is shown below. Files/directories with asterisks (``*``) marks are optional. Loading doc/source/unittest.rst +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ Here we show an example of an example unit test on ``csst_proto.top_level_interf Run Unit Tests Run unit tests -------------- To run unit tests Loading Loading
doc/source/codestyle.rst +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ Code Style ========== PEP 8 : The Base Python style PEP 8 : the base Python style ----------------------------- Python code should follow **PEP 8** Loading
doc/source/csst_common/csst_common.rst +9 −1 Original line number Diff line number Diff line Loading @@ -20,13 +20,19 @@ A class that helps developers to access simulation files. assert_all_detectors=False, # if True, assert all detectors are available datatype="mbi", # "mbi" or "sls" ) # for a quick start .. code-block:: python # for a quick start () dm_mbi = CsstMsDataManager.quickstart( ver_sim="C5.2", datatype="mbi", dir_l1=".", exposure_id=100 # the 100th exposure ) .. code-block:: python # access L0 directory dm_mbi.dir_l0 # access L1 directory Loading @@ -46,6 +52,8 @@ A class that helps developers to access simulation files. # define an L1 file (non-detector-specified) dm_mbi.l1_file("flipped_image.fits") .. code-block:: python # to get bias dm_mbi.get_bias() # to get dark Loading
doc/source/csst_common/example_interface.py +1 −1 Original line number Diff line number Diff line Loading @@ -143,7 +143,7 @@ def process_multiple_images( return CsstStatus.PERFECT else: # not all images are properly processed return CsstStatus.WARNING return CsstStatus.ERROR except DeprecationWarning: # this will be written into the log file logger.warning("Suffered DeprecationWarning!") Loading
doc/source/packaging.rst +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ official `Python Packaging User Guide`_, and more specifically `here`_. .. _Python Packaging User Guide: https://packaging.python.org/en/latest/ Project Structure Project structure ----------------- An example code structure is shown below. Files/directories with asterisks (``*``) marks are optional. Loading
doc/source/unittest.rst +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ Here we show an example of an example unit test on ``csst_proto.top_level_interf Run Unit Tests Run unit tests -------------- To run unit tests Loading