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
-
... ... @@ -1,81 +1,117 @@ 1 +test 2 + 3 +---- 4 + 5 +=== TODO === 6 + 1 1 (% style="list-style-type: square;" %) 2 -* Short descriptions including Links: 8 +* Short descriptions including Links: → as Text\\ 3 3 (% style="list-style-type: square;" %) 4 4 ** GPFS 5 5 ** JupyterHub 6 6 ** conda ? 7 7 14 +\\ 15 + 16 +* distribution 17 +** channel (where to host?) 18 +** environment file (repository with examples) 19 + 20 +\\ 21 + 8 8 (% style="list-style-type: square;" %) 9 -* Links Repository23 +* Documentation 10 10 (% style="list-style-type: square;" %) 11 -** includingMethodDescription25 +** here VS repository vs sphinx 12 12 13 13 \\ 14 14 15 15 (% style="list-style-type: square;" %) 16 -* Links to Binder 30 +* Binder 31 +(% style="list-style-type: square;" %) 32 +** examples with Stefan 17 17 18 18 \\ 19 19 36 +(% style="list-style-type: square;" %) 37 +* Screencast 38 +(% style="list-style-type: square;" %) 39 +** login in jupyter hub 40 +** login maxwell display 41 +** use slix 42 +** use hdfview plugin in jupterLab 43 +** create conda env with flashh5 44 + 20 20 \\ 21 21 22 - Questions:47 +\\ 23 23 24 -(% style="list-style-type: square;" %) 25 -* for whom 26 -* where Maxwell / local / extern 27 -* distribution\\ 28 -(% style="list-style-type: square;" %) 29 -** channel? 30 -(% style="list-style-type: square;" %) 31 -*** where official hosted (DESY, privat, conda-forge) 32 -** enviroment? 33 -(% style="list-style-type: square;" %) 34 -*** via files / already created? 49 +---- 35 35 51 +==== under review ==== 52 + 36 36 \\ 37 37 38 -{{code language="py"}} 55 +{{code language="bash"}} 56 +conda create -n flashh5 python=3.10 # 3.10 not necessary, but would prefer 3.8 or higher 57 +source activate flashh5 58 +conda install ipython numpy pandas #TODO: fix dependcies 59 +conda install -c https://www.desy.de/~cpassow/condarepo/ flashh5 60 + 61 +## on jhub 62 +conda install ipykernel 63 +python -m ipykernel install --user --name flashh5 --display-name "flashh5" 64 + 65 + 66 +## to remove on jhub 67 +## delete from: /home/$USER/.local/share/jupyter/kernels/ 68 +{{/code}} 69 + 70 +\\ 71 + 72 +{{code language="py" title="moved to repository?"}} 39 39 class RunDirectory: 40 40 41 - def get_run_table( self):75 + def get_run_table(): # more or less information? RunComment | Number of Files | start & stop time ? 42 42 ... 43 43 44 - def get_run(self, daq, run_number): 78 + def get_run(daq, run_number): # daq is not needed! 79 + 45 45 ... 46 46 47 47 48 48 class Run: 49 49 50 - def get_files( self):85 + def get_files(): 51 51 ... 52 52 53 - def get_channels( self): # of file #1?88 + def get_channels(): # of file #1 54 54 ... 55 55 56 - def get_start_time( self):91 + def get_start_time(): # better as attribute? 57 57 ... 58 58 59 - def get_stop_time( self): # which?94 + def get_stop_time(): # which? | better as attribute? 60 60 ... 61 - 62 - def to_df( self, channel_dict):96 + 97 + def to_df(daq_map): # to_df(daq_map, slice) slice=[0:4] -> throw Exception 63 63 ... 64 64 65 - def to_series( self,channel):100 + def to_series(channel): 66 66 ... 67 67 68 - def to_array( self,channel):103 + def to_array(channel): 69 69 ... 70 70 {{/code}} 71 71 72 -{{code language="py"}} 73 -run.to_df( channel_dict)74 -run.to_series( channel_stringorchannel_dict) # on channel only?75 -run.to_array( channel_string) # on channel only?107 +{{code language="py" title="ideas"}} 108 +run.to_df(daq_map) 109 +run.to_series(daq_adr or daq_map) # on channel only? 110 +run.to_array(daq_adr) # on channel only? 76 76 77 -# run.to_dask(dict) 78 -# run.to_xarray(dict) 112 +## interesting? 113 +# run.to_dask(daq_map) 114 +# run.to_xarray(daq_map) 79 79 {{/code}} 80 80 81 81 \\