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