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_proto
Commits
f668c617
Commit
f668c617
authored
Oct 08, 2022
by
BO ZHANG
🏀
Browse files
tweaks
parent
d362de04
Pipeline
#191
passed with stages
in 12 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/source/codestyle.rst
View file @
f668c617
...
...
@@ -2,7 +2,7 @@ Code Style
==========
PEP 8 :
T
he
B
ase Python style
PEP 8 :
t
he
b
ase Python style
-----------------------------
Python code should follow **PEP 8**
...
...
doc/source/csst_common/csst_common.rst
View file @
f668c617
...
...
@@ -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
...
...
@@ -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
...
...
doc/source/csst_common/example_interface.py
View file @
f668c617
...
...
@@ -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!"
)
...
...
doc/source/packaging.rst
View file @
f668c617
...
...
@@ -7,7 +7,7 @@ official `Python Packaging User Guide`_, and more specifically `here`_.
.. _Python Packaging User Guide: https://packaging.python.org/en/latest/
Project
S
tructure
Project
s
tructure
-----------------
An example code structure is shown below.
Files/directories with asterisks (``*``) marks are optional.
...
...
doc/source/unittest.rst
View file @
f668c617
...
...
@@ -15,7 +15,7 @@ Here we show an example of an example unit test on ``csst_proto.top_level_interf
Run
U
nit
T
ests
Run
u
nit
t
ests
--------------
To run unit tests
...
...
doc/source/vcs.rst
View file @
f668c617
...
...
@@ -14,15 +14,15 @@ which provides several advantages.
4. Code safety
the approve-merge mechanism, etc.
`git`
-----
`git` is probably the most widely used version control system presently.
`
`git`
`
-----
--
`
`git`
`
is probably the most widely used version control system presently.
- official website: https://git-scm.com/
- **Pro Git** (2nd Ed.): https://git-scm.com/book/en/v2
Basic
U
sages
Basic
u
sages
------------
To initialize a repository:
...
...
@@ -111,8 +111,8 @@ You can also store your credentials on disk via
``*.py~`` (temporary files generated by text editor).
Work
F
low with
Git
------------------
Work
f
low with
``git``
------------------
----
In CSST DAS pipeline development, each developer registers an account at the
`CSST DAS GitLab`_, which is a self self-managed `GitLab`_ instance
to host data processing pipelines at NAOC.
...
...
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