Last modified by makuadm on 2026-01-07 06:21

From version 6.1
edited by cpassow
on 2022-04-04 08:58
Change comment: There is no comment for this version
To version 11.1
edited by cpassow
on 2022-04-04 09:48
Change comment: There is no comment for this version

Summary

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  
... ... @@ -35,47 +35,65 @@
35 35  
36 36  \\
37 37  
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 +
38 38  {{code language="py" title="moved to repository?"}}
39 39  class RunDirectory:
40 40  
41 - def get_run_table(self):
60 + def get_run_table():
42 42   ...
43 43  
44 - def get_run(self, daq, run_number):
63 + def get_run(daq, run_number):
45 45   ...
46 46  
47 47  
48 48  class Run:
49 49  
50 - def get_files(self):
69 + def get_files():
51 51   ...
52 52  
53 - def get_channels(self): # of file #1?
72 + def get_channels(): # of file #1?
54 54   ...
55 55  
56 - def get_start_time(self):
75 + def get_start_time(): # better as attribute?
57 57   ...
58 58  
59 - def get_stop_time(self): # which?
78 + def get_stop_time(): # which? | better as attribute?
60 60   ...
61 61  
62 - def to_df(self, channel_dict):
81 + def to_df(daq_map):
63 63   ...
64 64  
65 - def to_series(self, channel):
84 + def to_series(channel):
66 66   ...
67 67  
68 - def to_array(self, channel):
87 + def to_array(channel):
69 69   ...
70 70  {{/code}}
71 71  
72 72  {{code language="py" title="ideas"}}
73 -run.to_df(channel_dict)
74 -run.to_series(channel_string or channel_dict) # on channel only?
75 -run.to_array(channel_string) # on channel only?
92 +run.to_df(daq_map)
93 +run.to_series(daq_adr or daq_map) # on channel only?
94 +run.to_array(daq_adr) # on channel only?
76 76  
77 -# run.to_dask(dict)
78 -# run.to_xarray(dict)
96 +## is this interesting?
97 +# run.to_dask(daq_map)
98 +# run.to_xarray(daq_map)
79 79  {{/code}}
80 80  
81 81  \\