Wiki source code of DEMO - Documentation
Version 20.1 by cpassow on 2022-04-04 15:18
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
2.1 | 1 | (% style="list-style-type: square;" %) |
| |
20.1 | 2 | * Short descriptions including Links: → as Text\\ |
| |
2.1 | 3 | (% style="list-style-type: square;" %) |
| 4 | ** GPFS | ||
| 5 | ** JupyterHub | ||
| 6 | ** conda ? | ||
| 7 | |||
| |
8.1 | 8 | \\ |
| 9 | |||
| |
2.1 | 10 | (% style="list-style-type: square;" %) |
| 11 | * Links Repository | ||
| 12 | (% style="list-style-type: square;" %) | ||
| |
20.1 | 13 | ** including Method Description: Readme or Sphinx ? |
| |
2.1 | 14 | |
| 15 | \\ | ||
| 16 | |||
| 17 | (% style="list-style-type: square;" %) | ||
| 18 | * Links to Binder | ||
| 19 | |||
| 20 | \\ | ||
| 21 | |||
| |
15.1 | 22 | (% style="list-style-type: square;" %) |
| 23 | * Screencast | ||
| 24 | |||
| |
2.1 | 25 | \\ |
| 26 | |||
| |
15.1 | 27 | \\ |
| 28 | |||
| |
2.1 | 29 | Questions: |
| 30 | |||
| 31 | (% style="list-style-type: square;" %) | ||
| |
3.1 | 32 | * distribution\\ |
| 33 | (% style="list-style-type: square;" %) | ||
| |
20.1 | 34 | ** channel |
| 35 | ** enviroment → as example for binder | ||
| |
4.1 | 36 | |
| 37 | \\ | ||
| 38 | |||
| |
8.1 | 39 | {{code language="bash"}} |
| |
9.1 | 40 | conda create -n flashh5 python=3.10 # 3.10 not necessary, but would prefer 3.8 or higher |
| |
8.1 | 41 | source activate flashh5 |
| |
10.1 | 42 | conda install ipython numpy pandas #TODO: fix dependcies |
| |
8.1 | 43 | conda install -c https://www.desy.de/~cpassow/condarepo/ flashh5 |
| 44 | |||
| 45 | ## on jhub | ||
| |
11.1 | 46 | conda install ipykernel |
| |
8.1 | 47 | python -m ipykernel install --user --name flashh5 --display-name "flashh5" |
| 48 | |||
| 49 | |||
| |
11.1 | 50 | ## to remove on jhub |
| 51 | ## delete from: /home/$USER/.local/share/jupyter/kernels/ | ||
| |
8.1 | 52 | {{/code}} |
| 53 | |||
| 54 | \\ | ||
| 55 | |||
| |
6.1 | 56 | {{code language="py" title="moved to repository?"}} |
| |
4.1 | 57 | class RunDirectory: |
| 58 | |||
| |
17.1 | 59 | def get_run_table(): # more or less information? RunComment | Number of Files |
| |
4.1 | 60 | ... |
| 61 | |||
| |
13.1 | 62 | def get_run(daq, run_number): # daq is not needed |
| |
4.1 | 63 | ... |
| 64 | |||
| 65 | |||
| 66 | class Run: | ||
| 67 | |||
| |
7.1 | 68 | def get_files(): |
| |
4.1 | 69 | ... |
| 70 | |||
| |
18.1 | 71 | def get_channels(): # of file #1 |
| |
4.1 | 72 | ... |
| 73 | |||
| |
8.1 | 74 | def get_start_time(): # better as attribute? |
| |
4.1 | 75 | ... |
| 76 | |||
| |
8.1 | 77 | def get_stop_time(): # which? | better as attribute? |
| |
4.1 | 78 | ... |
| 79 | |||
| |
12.1 | 80 | ### for following methods to restrict number of files or separate method |
| 81 | ### e.g. create_df(files) | ||
| 82 | |||
| |
19.1 | 83 | def to_df(daq_map): # to_df(daq_map, slice) slice=[0:4] -> throw Exception |
| |
4.1 | 84 | ... |
| 85 | |||
| |
7.1 | 86 | def to_series(channel): |
| |
4.1 | 87 | ... |
| 88 | |||
| |
7.1 | 89 | def to_array(channel): |
| |
4.1 | 90 | ... |
| 91 | {{/code}} | ||
| 92 | |||
| |
6.1 | 93 | {{code language="py" title="ideas"}} |
| |
10.1 | 94 | run.to_df(daq_map) |
| 95 | run.to_series(daq_adr or daq_map) # on channel only? | ||
| 96 | run.to_array(daq_adr) # on channel only? | ||
| |
5.1 | 97 | |
| |
8.1 | 98 | ## is this interesting? |
| |
10.1 | 99 | # run.to_dask(daq_map) |
| 100 | # run.to_xarray(daq_map) | ||
| |
5.1 | 101 | {{/code}} |
| 102 | |||
| |
4.1 | 103 | \\ |