Wiki source code of DEMO - Documentation
Version 9.1 by cpassow on 2022-04-04 09:31
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 |
| 43 | conda install ipython numpy pandas # fix dependcies | ||
| 44 | conda install -c https://www.desy.de/~cpassow/condarepo/ flashh5 | ||
| 45 | |||
| 46 | ## on jhub | ||
| 47 | python -m ipykernel install --user --name flashh5 --display-name "flashh5" | ||
| 48 | |||
| 49 | |||
| 50 | {{/code}} | ||
| 51 | |||
| 52 | \\ | ||
| 53 | |||
| 54 | \\ | ||
| 55 | |||
| |
6.1 | 56 | {{code language="py" title="moved to repository?"}} |
| |
4.1 | 57 | class RunDirectory: |
| 58 | |||
| |
7.1 | 59 | def get_run_table(): |
| |
4.1 | 60 | ... |
| 61 | |||
| |
7.1 | 62 | def get_run(daq, run_number): |
| |
4.1 | 63 | ... |
| 64 | |||
| 65 | |||
| 66 | class Run: | ||
| 67 | |||
| |
7.1 | 68 | def get_files(): |
| |
4.1 | 69 | ... |
| 70 | |||
| |
7.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 | |||
| |
7.1 | 80 | def to_df(channel_map): |
| |
4.1 | 81 | ... |
| 82 | |||
| |
7.1 | 83 | def to_series(channel): |
| |
4.1 | 84 | ... |
| 85 | |||
| |
7.1 | 86 | def to_array(channel): |
| |
4.1 | 87 | ... |
| 88 | {{/code}} | ||
| 89 | |||
| |
6.1 | 90 | {{code language="py" title="ideas"}} |
| |
7.1 | 91 | run.to_df(channel_map) |
| 92 | run.to_series(channel_string or channel_map) # on channel only? | ||
| |
5.1 | 93 | run.to_array(channel_string) # on channel only? |
| 94 | |||
| |
8.1 | 95 | ## is this interesting? |
| |
5.1 | 96 | # run.to_dask(dict) |
| 97 | # run.to_xarray(dict) | ||
| 98 | {{/code}} | ||
| 99 | |||
| |
4.1 | 100 | \\ |