Wiki source code of DEMO - Documentation
Version 15.1 by cpassow on 2022-04-04 11:29
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
2.1 | 1 | (% style="list-style-type: square;" %) |
| 2 | * Short descriptions including Links: | ||
| 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;" %) | ||
| |
8.1 | 13 | ** including Method Description? |
| |
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;" %) | ||
| 32 | * for whom | ||
| 33 | * where Maxwell / local / extern | ||
| |
3.1 | 34 | * distribution\\ |
| 35 | (% style="list-style-type: square;" %) | ||
| 36 | ** channel? | ||
| 37 | (% style="list-style-type: square;" %) | ||
| 38 | *** where official hosted (DESY, privat, conda-forge) | ||
| 39 | ** enviroment? | ||
| |
4.1 | 40 | (% style="list-style-type: square;" %) |
| 41 | *** via files / already created? | ||
| 42 | |||
| 43 | \\ | ||
| 44 | |||
| |
8.1 | 45 | {{code language="bash"}} |
| |
9.1 | 46 | conda create -n flashh5 python=3.10 # 3.10 not necessary, but would prefer 3.8 or higher |
| |
8.1 | 47 | source activate flashh5 |
| |
10.1 | 48 | conda install ipython numpy pandas #TODO: fix dependcies |
| |
8.1 | 49 | conda install -c https://www.desy.de/~cpassow/condarepo/ flashh5 |
| 50 | |||
| 51 | ## on jhub | ||
| |
11.1 | 52 | conda install ipykernel |
| |
8.1 | 53 | python -m ipykernel install --user --name flashh5 --display-name "flashh5" |
| 54 | |||
| 55 | |||
| |
11.1 | 56 | ## to remove on jhub |
| 57 | ## delete from: /home/$USER/.local/share/jupyter/kernels/ | ||
| |
8.1 | 58 | {{/code}} |
| 59 | |||
| 60 | \\ | ||
| 61 | |||
| |
6.1 | 62 | {{code language="py" title="moved to repository?"}} |
| |
4.1 | 63 | class RunDirectory: |
| 64 | |||
| |
14.1 | 65 | def get_run_table(): # more or less information? |
| |
4.1 | 66 | ... |
| 67 | |||
| |
13.1 | 68 | def get_run(daq, run_number): # daq is not needed |
| |
4.1 | 69 | ... |
| 70 | |||
| 71 | |||
| 72 | class Run: | ||
| 73 | |||
| |
7.1 | 74 | def get_files(): |
| |
4.1 | 75 | ... |
| 76 | |||
| |
7.1 | 77 | def get_channels(): # of file #1? |
| |
4.1 | 78 | ... |
| 79 | |||
| |
8.1 | 80 | def get_start_time(): # better as attribute? |
| |
4.1 | 81 | ... |
| 82 | |||
| |
8.1 | 83 | def get_stop_time(): # which? | better as attribute? |
| |
4.1 | 84 | ... |
| 85 | |||
| |
12.1 | 86 | ### for following methods to restrict number of files or separate method |
| 87 | ### e.g. create_df(files) | ||
| 88 | |||
| |
10.1 | 89 | def to_df(daq_map): |
| |
4.1 | 90 | ... |
| 91 | |||
| |
7.1 | 92 | def to_series(channel): |
| |
4.1 | 93 | ... |
| 94 | |||
| |
7.1 | 95 | def to_array(channel): |
| |
4.1 | 96 | ... |
| 97 | {{/code}} | ||
| 98 | |||
| |
6.1 | 99 | {{code language="py" title="ideas"}} |
| |
10.1 | 100 | run.to_df(daq_map) |
| 101 | run.to_series(daq_adr or daq_map) # on channel only? | ||
| 102 | run.to_array(daq_adr) # on channel only? | ||
| |
5.1 | 103 | |
| |
8.1 | 104 | ## is this interesting? |
| |
10.1 | 105 | # run.to_dask(daq_map) |
| 106 | # run.to_xarray(daq_map) | ||
| |
5.1 | 107 | {{/code}} |
| 108 | |||
| |
4.1 | 109 | \\ |