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 ... ... @@ -17,8 +17,13 @@ 17 17 18 18 \\ 19 19 22 +(% style="list-style-type: square;" %) 23 +* Screencast 24 + 20 20 \\ 21 21 27 +\\ 28 + 22 22 Questions: 23 23 24 24 (% style="list-style-type: square;" %) ... ... @@ -35,38 +35,68 @@ 35 35 36 36 \\ 37 37 38 -{{code language="py"}} 45 +{{code language="bash"}} 46 +conda create -n flashh5 python=3.10 # 3.10 not necessary, but would prefer 3.8 or higher 47 +source activate flashh5 48 +conda install ipython numpy pandas #TODO: fix dependcies 49 +conda install -c https://www.desy.de/~cpassow/condarepo/ flashh5 50 + 51 +## on jhub 52 +conda install ipykernel 53 +python -m ipykernel install --user --name flashh5 --display-name "flashh5" 54 + 55 + 56 +## to remove on jhub 57 +## delete from: /home/$USER/.local/share/jupyter/kernels/ 58 +{{/code}} 59 + 60 +\\ 61 + 62 +{{code language="py" title="moved to repository?"}} 39 39 class RunDirectory: 40 40 41 - def get_run_table( self):65 + def get_run_table(): # more or less information? 42 42 ... 43 43 44 - def get_run( self,daq, run_number):68 + def get_run(daq, run_number): # daq is not needed 45 45 ... 46 46 47 47 48 48 class Run: 49 49 50 - def get_files( self):74 + def get_files(): 51 51 ... 52 52 53 - def get_channels( self): # of file #1?77 + def get_channels(): # of file #1? 54 54 ... 55 55 56 - def get_start_time( self):80 + def get_start_time(): # better as attribute? 57 57 ... 58 58 59 - def get_stop_time( self): # which?83 + def get_stop_time(): # which? | better as attribute? 60 60 ... 61 61 62 - def to_df(self, channel_dict): 86 +### for following methods to restrict number of files or separate method 87 +### e.g. create_df(files) 88 + 89 + def to_df(daq_map): 63 63 ... 64 64 65 - def to_series( self,channel):92 + def to_series(channel): 66 66 ... 67 67 68 - def to_array( self,channel):95 + def to_array(channel): 69 69 ... 70 70 {{/code}} 71 71 99 +{{code language="py" title="ideas"}} 100 +run.to_df(daq_map) 101 +run.to_series(daq_adr or daq_map) # on channel only? 102 +run.to_array(daq_adr) # on channel only? 103 + 104 +## is this interesting? 105 +# run.to_dask(daq_map) 106 +# run.to_xarray(daq_map) 107 +{{/code}} 108 + 72 72 \\