Wiki source code of DEMO - Documentation

Version 21.1 by cpassow on 2022-04-05 14:40

Show last authors
1 test
2
3 ----
4
5 === TODO ===
6
7 (% style="list-style-type: square;" %)
8 * Short descriptions including Links:   → as Text\\
9 (% style="list-style-type: square;" %)
10 ** GPFS
11 ** JupyterHub
12 ** conda ?
13
14 \\
15
16 * distribution
17 ** channel  (where to host?)
18 ** environment file (repository with examples)
19
20 \\
21
22 (% style="list-style-type: square;" %)
23 * Documentation
24 (% style="list-style-type: square;" %)
25 ** here VS repository vs sphinx
26
27 \\
28
29 (% style="list-style-type: square;" %)
30 * Binder
31 (% style="list-style-type: square;" %)
32 ** examples with Stefan
33
34 \\
35
36 (% style="list-style-type: square;" %)
37 * Screencast
38 (% style="list-style-type: square;" %)
39 ** login in jupyter hub
40 ** login maxwell display
41 ** use slix
42 ** use hdfview plugin in jupterLab
43 ** create conda env with flashh5
44
45 \\
46
47 \\
48
49 ----
50
51 ==== under review ====
52
53 \\
54
55 {{code language="bash"}}
56 conda create -n flashh5 python=3.10 # 3.10 not necessary, but would prefer 3.8 or higher
57 source activate flashh5
58 conda install ipython numpy pandas #TODO: fix dependcies
59 conda install -c https://www.desy.de/~cpassow/condarepo/ flashh5
60
61 ## on jhub
62 conda install ipykernel
63 python -m ipykernel install --user --name flashh5 --display-name "flashh5"
64
65
66 ## to remove on jhub
67 ## delete from: /home/$USER/.local/share/jupyter/kernels/
68 {{/code}}
69
70 \\
71
72 {{code language="py" title="moved to repository?"}}
73 class RunDirectory:
74
75 def get_run_table(): # more or less information? RunComment | Number of Files | start & stop time ?
76 ...
77
78 def get_run(daq, run_number): # daq is not needed!
79
80 ...
81
82
83 class Run:
84
85 def get_files():
86 ...
87
88 def get_channels(): # of file #1
89 ...
90
91 def get_start_time(): # better as attribute?
92 ...
93
94 def get_stop_time(): # which? | better as attribute?
95 ...
96
97 def to_df(daq_map): # to_df(daq_map, slice) slice=[0:4] -> throw Exception
98 ...
99
100 def to_series(channel):
101 ...
102
103 def to_array(channel):
104 ...
105 {{/code}}
106
107 {{code language="py" title="ideas"}}
108 run.to_df(daq_map)
109 run.to_series(daq_adr or daq_map) # on channel only?
110 run.to_array(daq_adr) # on channel only?
111
112 ## interesting?
113 # run.to_dask(daq_map)
114 # run.to_xarray(daq_map)
115 {{/code}}
116
117 \\