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