Changes for page DEMO - Working with FLASH data
Last modified by makuadm on 2026-01-07 06:21
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -5,10 +5,12 @@ 5 5 ** JupyterHub 6 6 ** conda ? 7 7 8 +\\ 9 + 8 8 (% style="list-style-type: square;" %) 9 9 * Links Repository 10 10 (% style="list-style-type: square;" %) 11 -** including Method Description 13 +** including Method Description? 12 12 13 13 \\ 14 14 ... ... @@ -24,4 +24,79 @@ 24 24 (% style="list-style-type: square;" %) 25 25 * for whom 26 26 * where Maxwell / local / extern 27 -* distribution 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? 35 +(% style="list-style-type: square;" %) 36 +*** via files / already created? 37 + 38 +\\ 39 + 40 +{{code language="bash"}} 41 +conda create -n flashh5 python=3.10 # 3.10 not necessary, but would prefer 3.8 or higher 42 +source activate flashh5 43 +conda install ipython numpy pandas #TODO: fix dependcies 44 +conda install -c https://www.desy.de/~cpassow/condarepo/ flashh5 45 + 46 +## on jhub 47 +conda install ipykernel 48 +python -m ipykernel install --user --name flashh5 --display-name "flashh5" 49 + 50 + 51 +## to remove on jhub 52 +## delete from: /home/$USER/.local/share/jupyter/kernels/ 53 +{{/code}} 54 + 55 +\\ 56 + 57 +{{code language="py" title="moved to repository?"}} 58 +class RunDirectory: 59 + 60 + def get_run_table(): 61 + ... 62 + 63 + def get_run(daq, run_number): 64 + ... 65 + 66 + 67 +class Run: 68 + 69 + def get_files(): 70 + ... 71 + 72 + def get_channels(): # of file #1? 73 + ... 74 + 75 + def get_start_time(): # better as attribute? 76 + ... 77 + 78 + def get_stop_time(): # which? | better as attribute? 79 + ... 80 + 81 +### for following methods to restrict number of files or separate method 82 +### e.g. create_df(files) 83 + 84 + def to_df(daq_map): 85 + ... 86 + 87 + def to_series(channel): 88 + ... 89 + 90 + def to_array(channel): 91 + ... 92 +{{/code}} 93 + 94 +{{code language="py" title="ideas"}} 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? 98 + 99 +## is this interesting? 100 +# run.to_dask(daq_map) 101 +# run.to_xarray(daq_map) 102 +{{/code}} 103 + 104 +\\