Skip to content

Commit f46ddae

Browse files
authored
Add units flow page to docs (#689)
2 parents 1ba7d03 + a0e68b1 commit f46ddae

4 files changed

Lines changed: 86 additions & 1 deletion

File tree

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
'sphinx.ext.doctest',
6868
'sphinx.ext.napoleon',
6969
'sphinx_copybutton',
70+
'sphinxcontrib.mermaid',
7071
'myst_nb',
7172
]
7273

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Approximate sketch of "units flow" in ScopeSim
2+
3+
Effects that change units are shown in hexagonal boxes.
4+
Rectangular boxes are basically `ImageHDU` wrappers.
5+
Parallelogram boxes are lists of other entities.
6+
7+
```{mermaid}
8+
%%{init: {"theme": "dark"} }%%
9+
flowchart TB
10+
Source(["`Source
11+
[ph/cm2/s/AA(/arcsec2)]
12+
[PHOTLAM(/arcsec2)]`"])
13+
FOV1[/"`FOV.fields
14+
[ph/cm2/s/AA(/arcsec2)]`"/]
15+
FOV2["`FOV.hdu
16+
[ph/s]`"]
17+
FOV3[/"`FOV.fields
18+
[ph/cm2/s/AA(/arcsec2)]`"/]
19+
FOV4["`FOV.hdu
20+
[ph/s/um/arcsec2]`"]
21+
FOV5["`FOV.hdu
22+
[ph/s]`"]
23+
SPT{{"`SpectralTrace:
24+
dispersion, sum(sky)`"}}
25+
IMP["`ImagePlane
26+
[ph/s]`"]
27+
Det1["`Detector
28+
[ph/s]`"]
29+
QECurve{{"`QECurve:
30+
ph/s -> e-/s`"}}
31+
Det2["`Detector
32+
[e-/s]`"]
33+
SE{{"`ExposureIntegration:
34+
sum(time)`"}}
35+
Det3["`Detector
36+
[e-]`"]
37+
ADC{{"`ADConversion:
38+
e- -> ADU`"}}
39+
Det4["`Detector
40+
[ADU]`"]
41+
Output(["`Output
42+
[ADU]`"])
43+
44+
Source-- extract -->FOV1
45+
subgraph Imaging
46+
FOV1-- "sum(wave), *area" -->FOV2
47+
end
48+
Source-- extract -->FOV3
49+
subgraph Spectroscopy
50+
FOV3-- *area -->FOV4
51+
FOV4-->SPT
52+
SPT-->FOV5
53+
end
54+
FOV2-- project -->IMP
55+
FOV5-- project -->IMP
56+
IMP-- "extract" -->Det1
57+
Det1-->QECurve
58+
QECurve-->Det2
59+
Det2-->SE
60+
SE-->Det3
61+
Det3-->ADC
62+
ADC-->Det4
63+
Det4-->Output
64+
```

poetry.lock

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jupyter-sphinx = ">=0.5.3"
6565
sphinx-copybutton = "^0.5.2"
6666
myst-nb = "^1.2.0"
6767
sphinxcontrib-apidoc = ">=0.6.0"
68+
sphinxcontrib-mermaid = "^1.0.0"
6869
nbsphinx = "^0.9.6"
6970
numpydoc = "^1.6.0"
7071
scopesim_templates = ">=0.6.0"

0 commit comments

Comments
 (0)