User Tools

Site Tools


namespace:getting_data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
namespace:getting_data [2025/11/06 22:24] adminnamespace:getting_data [2025/11/06 22:26] (current) – [Gil/Dylan getting started to collect data] admin
Line 17: Line 17:
 import io\\ import io\\
 from PIL import Image\\ from PIL import Image\\
-import os +import os\\ 
- +\\ 
-#%% +#%%\\ 
-class rasterrunner(): +class rasterrunner():\\ 
-   def __init__(self): +   def __init__(self):\\ 
-       super().__init__() +       super().__init__()\\
- +
-       self.setup = Setup() +
-       print(self.setup.acquisition_dict) +
-       print(self.setup.actuator_dict) +
-       if self.setup.actuator_dict: print(self.setup.input_map) +
-       print(''+
-#%%  ESTABLISH NAMES FOR ALL THE STUFF I WANT TO TALK TO. +
-opt = rasterrunner() +
-#%% +
-opt.setup.query.clear_query() +
-lsn = opt.setup.query.get_last_shot_number() +
- +
-value_query_dict = {'metadata' : {'experiment' :['20250304_especcalibration']}}#, +
-#value_query_dict = {'metadata' : {'experiment' :['20250304_especcalibration']}}#, +
- +
-range_query_dict = {'metadata' : {'shot_number' : [lsn-200, lsn]}}    #198579#198066 +
- +
-#First round:shit archive; 198060, 198573] +
-opt.setup.query.query_data_range(range_query_dict) +
-raw_res, proc_res = opt.setup.query.run_query(fetch_related_data = False, make_dict = True) +
-#%% +
-dataout = []+
  
 +       self.setup = Setup()\\
 +       print(self.setup.acquisition_dict)\\
 +       print(self.setup.actuator_dict)\\
 +       if self.setup.actuator_dict: print(self.setup.input_map)\\
 +       print('')\\
 +#%%  ESTABLISH NAMES FOR ALL THE STUFF I WANT TO TALK TO.\\
 +opt = rasterrunner()\\
 +#%%\\
 +opt.setup.query.clear_query()\\
 +lsn = opt.setup.query.get_last_shot_number()\\
 +\\
 +value_query_dict = {'metadata' : {'experiment' :['20250304_especcalibration']}}#,\\
 +#value_query_dict = {'metadata' : {'experiment' :['20250304_especcalibration']}}#,\\
 +\\
 +range_query_dict = {'metadata' : {'shot_number' : [lsn-200, lsn]}}    #198579#198066\\
 +\\
 +#First round:shit archive; 198060, 198573]\\
 +opt.setup.query.query_data_range(range_query_dict)\\
 +raw_res, proc_res = opt.setup.query.run_query(fetch_related_data = False, make_dict = True)\\
 +#%%\\
 +dataout = []\\
 +\\
  
  
namespace/getting_data.1762467843.txt.gz · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki