Changes for page DEMO - Working with FLASH data
Last modified by makuadm on 2026-01-07 06:21
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -DEMO - Documentation1 +DEMO - Working with FLASH data - Content
-
... ... @@ -1,65 +1,206 @@ 1 -(% style="list-style-type: square;" %) 2 -* Short descriptions including Links: 3 -(% style="list-style-type: square;" %) 4 -** GPFS 5 -** JupyterHub 6 -** conda ? 1 +test 7 7 8 -(% style="list-style-type: square;" %) 9 -* Links Repository 10 -(% style="list-style-type: square;" %) 11 -** including Method Description 3 +\\ 12 12 5 +{{expand title="TEST - How to login JupyterHub"}} 6 + 7 + 8 +{{view-file att--filename="tmp.mp4" height="250"/}} 9 +{{/expand}} 10 + 13 13 \\ 14 14 15 -(% style="list-style-type: square;" %) 16 -* Links to Binder 13 +\\ 17 17 15 +---- 16 + 17 +=== TODO === 18 + 19 +(% class="task-list" %) 20 +((( 21 +{{task reference="/Tasks/Task_18" status="InProgress"}} 22 +Short descriptions including Links: → as Text\\ 23 + 24 +(% class="task-list" %) 25 +((( 26 + 27 + 28 +{{task reference="/Tasks/Task_19" status="InProgress"}} 29 +GPFS 30 +{{/task}} 31 + 32 +{{task reference="/Tasks/Task_40" status="InProgress"}} 33 +Access rights 34 +{{/task}} 35 + 36 +{{task reference="/Tasks/Task_41" status="InProgress"}} 37 +Gamma Portal 38 +{{/task}} 39 + 40 +{{task reference="/Tasks/Task_42" status="InProgress"}} 41 +Maxwell 42 +{{/task}} 43 + 44 +{{task reference="/Tasks/Task_20" status="InProgress"}} 45 +JupyterHub 46 +{{/task}} 47 + 48 +{{task reference="/Tasks/Task_21" status="InProgress"}} 49 +conda ? 50 +{{/task}} 51 + 52 +{{task reference="/Tasks/Task_36" status="InProgress"}} 53 +explain install from channel instead of fixed environment, but can use environment file from example repository 54 +{{/task}} 55 +))) 56 +{{/task}} 57 +))) 58 + 18 18 \\ 19 19 61 +(% class="task-list" %) 62 +((( 63 +{{task reference="/Tasks/Task_22" status="InProgress"}} 64 +distribution 65 + 66 +(% class="task-list" %) 67 +((( 68 + 69 + 70 +{{task reference="/Tasks/Task_23" status="InProgress"}} 71 +channel (where to host?) 72 +{{/task}} 73 + 74 +{{task reference="/Tasks/Task_24" status="InProgress"}} 75 +environment file (repository with examples) 76 +{{/task}} 77 +))) 78 +{{/task}} 79 +))) 80 + 20 20 \\ 21 21 22 -Questions: 83 +(% class="task-list" %) 84 +((( 85 +{{task reference="/Tasks/Task_25" status="InProgress"}} 86 +Documentation 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? 88 +(% class="task-list" %) 89 +((( 90 + 35 35 92 +{{task reference="/Tasks/Task_26" status="InProgress"}} 93 +here VS repository VS sphinx 94 +{{/task}} 95 +))) 96 +{{/task}} 97 +))) 98 + 36 36 \\ 37 37 101 +(% class="task-list" %) 102 +((( 103 +{{task reference="/Tasks/Task_27" status="InProgress"}} 104 +Binder 105 + 106 +(% class="task-list" %) 107 +((( 108 + 109 + 110 +{{task reference="/Tasks/Task_28" status="InProgress"}} 111 +examples with Stefan 112 +{{/task}} 113 +))) 114 +{{/task}} 115 +))) 116 + 117 +\\ 118 + 119 +(% class="task-list" %) 120 +((( 121 +{{task reference="/Tasks/Task_29" status="InProgress"}} 122 +Screencast 123 + 124 +(% class="task-list" %) 125 +((( 126 + 127 + 128 +{{task reference="/Tasks/Task_30" status="InProgress"}} 129 +login in jupyter hub 130 +{{/task}} 131 + 132 +{{task reference="/Tasks/Task_31" status="InProgress"}} 133 +login maxwell display 134 +{{/task}} 135 + 136 +{{task reference="/Tasks/Task_32" status="InProgress"}} 137 +use slix 138 +{{/task}} 139 + 140 +{{task reference="/Tasks/Task_33" status="InProgress"}} 141 +use hdfview plugin in jupterLab 142 +{{/task}} 143 + 144 +{{task reference="/Tasks/Task_34" status="InProgress"}} 145 +create conda env with flashh5 146 +{{/task}} 147 +))) 148 +{{/task}} 149 +))) 150 + 151 +\\ 152 + 153 +\\ 154 + 155 +---- 156 + 157 +==== under review ==== 158 + 159 +\\ 160 + 161 +{{code language="bash"}} 162 +conda create -n flashh5 python=3.10 # 3.10 not necessary, but would prefer 3.8 or higher 163 +source activate flashh5 164 +conda install ipython numpy pandas #TODO: fix dependcies 165 +conda install -c https://www.desy.de/~cpassow/condarepo/ flashh5 166 + 167 +## on jhub 168 +conda install ipykernel 169 +python -m ipykernel install --user --name flashh5 --display-name "flashh5" 170 + 171 + 172 +## to remove on jhub 173 +## delete from: /home/$USER/.local/share/jupyter/kernels/ 174 +{{/code}} 175 + 176 +\\ 177 + 38 38 {{code language="py" title="moved to repository?"}} 39 39 class RunDirectory: 40 40 41 - def get_run_table(): 181 + def get_run_table(): # more or less information? RunComment | Number of Files | start & stop time ? 42 42 ... 43 43 44 - def get_run(daq, run_number): 184 + def get_run(daq, run_number): # daq is not needed! 185 + 45 45 ... 46 46 47 47 48 -class Run: 189 +class Run: # constructor optional without RunDirectory or use there self.path 49 49 50 50 def get_files(): 51 51 ... 52 52 53 - def get_channels(): # of file #1 ?194 + def get_channels(): # of file #1 54 54 ... 55 55 56 - def get_start_time(): 197 + def get_start_time(): # better as attribute? 57 57 ... 58 58 59 - def get_stop_time(): # which? 200 + def get_stop_time(): # which? | better as attribute? 60 60 ... 61 - 62 - def to_df( channel_map):202 + 203 + def to_df(daq_map): # to_df(daq_map, slice) slice=[0:4] -> throw Exception 63 63 ... 64 64 65 65 def to_series(channel): ... ... @@ -70,12 +70,13 @@ 70 70 {{/code}} 71 71 72 72 {{code language="py" title="ideas"}} 73 -run.to_df( channel_map)74 -run.to_series( channel_stringorchannel_map) # on channel only?75 -run.to_array( channel_string) # on channel only?214 +run.to_df(daq_map) 215 +run.to_series(daq_adr or daq_map) # on channel only? 216 +run.to_array(daq_adr) # on channel only? 76 76 77 -# run.to_dask(dict) 78 -# run.to_xarray(dict) 218 +## interesting? 219 +# run.to_dask(daq_map) 220 +# run.to_xarray(daq_map) 79 79 {{/code}} 80 80 81 81 \\