Wiki source code of DEMO - Documentation

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

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