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

updated doc

parent 5336187e
Pipeline #228 passed with stages
in 20 seconds
...@@ -28,3 +28,15 @@ The timeline is splitted into cycles, and each cycle spans 6 months. ...@@ -28,3 +28,15 @@ The timeline is splitted into cycles, and each cycle spans 6 months.
- C6 (2022.7-2022.12) - C6 (2022.7-2022.12)
- integrate L1 pipelines - integrate L1 pipelines
- C5 (2022.1-2022.6) - C5 (2022.1-2022.6)
Weekly meeting
--------------
- 2022-08-26 (Fri)
- 2022-09-02 (Fri)
- 2022-09-09 (Fri)
- 2022-09-16 (Fri)
- 2022-09-23 (Fri)
- 2022-09-30 (Fri)
- 2022-10-14 (Fri)
- 2022-10-21 (Fri)
...@@ -29,7 +29,7 @@ The two packages are preferred for implementing `embarrassingly` parallel comput ...@@ -29,7 +29,7 @@ The two packages are preferred for implementing `embarrassingly` parallel comput
- ``multiprocessing``: https://docs.python.org/3/library/multiprocessing.html - ``multiprocessing``: https://docs.python.org/3/library/multiprocessing.html
- ``joblib``: https://joblib.readthedocs.io/en/latest/ - ``joblib``: https://joblib.readthedocs.io/en/latest/
.. literalinclude:: ./example_multiprocessing.py .. literalinclude:: preference/example_multiprocessing.py
:linenos: :linenos:
:language: python :language: python
:caption: an example of using ``multiprocessing`` for parallel computing :caption: an example of using ``multiprocessing`` for parallel computing
...@@ -40,7 +40,7 @@ The output is ...@@ -40,7 +40,7 @@ The output is
Total time cost: 5.095193147659302 sec! Total time cost: 5.095193147659302 sec!
.. literalinclude:: ./example_joblib.py .. literalinclude:: preference/example_joblib.py
:linenos: :linenos:
:language: python :language: python
:caption: an example of using ``joblib`` for parallel computing :caption: an example of using ``joblib`` for parallel computing
......
...@@ -24,6 +24,7 @@ A class that helps developers to access simulation files. ...@@ -24,6 +24,7 @@ A class that helps developers to access simulation files.
assert_all_detectors=False, # if True, assert all detectors are available assert_all_detectors=False, # if True, assert all detectors are available
datatype="mbi", # "mbi" or "sls" datatype="mbi", # "mbi" or "sls"
) )
dm_mbi.set_detectors(detectors=None) # use all available detectors
.. code-block:: python .. code-block:: python
...@@ -34,6 +35,14 @@ A class that helps developers to access simulation files. ...@@ -34,6 +35,14 @@ A class that helps developers to access simulation files.
dir_l1=".", dir_l1=".",
exposure_id=100 # the 100th exposure exposure_id=100 # the 100th exposure
) )
dm_mbi.set_detectors(detectors=None) # use all available detectors
.. note::
This ``quickstart`` method is ONLY available on
``dandelion`` and the Purple Mountain Lab node.
In your local development environment, you have to use
``CsstMsDataManager(...)`` to initialize it.
.. code-block:: python .. code-block:: python
...@@ -179,7 +188,7 @@ The example code is shown below. ...@@ -179,7 +188,7 @@ The example code is shown below.
Source code Source code
^^^^^^^^^^^ ^^^^^^^^^^^
.. literalinclude:: example_interface.py .. literalinclude:: csst_common/example_interface.py
:caption: ``example_interface.py`` :caption: ``example_interface.py``
:emphasize-lines: 7-11,36-41,85,87-88,91-92,95-96,99-101,111-116,148,155-165,167-173,178-179,182-183,186-187,190-191 :emphasize-lines: 7-11,36-41,85,87-88,91-92,95-96,99-101,111-116,148,155-165,167-173,178-179,182-183,186-187,190-191
:linenos: :linenos:
......
...@@ -62,7 +62,7 @@ The guide for LSST developers ...@@ -62,7 +62,7 @@ The guide for LSST developers
:maxdepth: 2 :maxdepth: 2
:caption: TEAM :caption: TEAM
team.rst ch01_team.rst
.. toctree:: .. toctree::
...@@ -70,13 +70,13 @@ The guide for LSST developers ...@@ -70,13 +70,13 @@ The guide for LSST developers
:maxdepth: 2 :maxdepth: 2
:caption: GUIDES FOR DEVELOPERS :caption: GUIDES FOR DEVELOPERS
vcs.rst ch02_vcs.rst
packaging.rst ch03_packaging.rst
codestyle.rst ch04_codestyle.rst
preference/preference.rst ch05_preference.rst
unittest.rst ch06_unittest.rst
simulation.rst ch07_simulation.rst
csst_common/csst_common.rst ch08_csst_common.rst
.. toctree:: .. toctree::
...@@ -84,8 +84,8 @@ The guide for LSST developers ...@@ -84,8 +84,8 @@ The guide for LSST developers
:maxdepth: 2 :maxdepth: 2
:caption: CODE MANAGEMENT :caption: CODE MANAGEMENT
build.rst ch09_build.rst
integration.rst ch10_integration.rst
.. toctree:: .. toctree::
......
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