GWeasy v3.0.1
No code GW analysis interface
 
Loading...
Searching...
No Matches
GWeasy.Omiviz Class Reference

Public Member Functions

 __init__ (self, root)
 
 start_loading (self)
 
 stop_loading (self)
 
 update_progress (self, text)
 
 show_previous_plot (self)
 
 show_next_plot (self)
 
 update_navigation_buttons (self)
 
 create_widgets (self)
 
 valent (self, label, key, frame=None, row=0, col=0, editable=True)
 
 create_output_path_selector (self, label, key, frame=None, row=0, column=0)
 
 select_output_folder (self, var)
 
 create_file_selector (self, label, key, frame=None, row=0, column=0)
 
 select_file_or_folder (self, var)
 
 run_omicron_plot (self)
 
 execute_command (self, command, gps_start, gps_end, output_folder)
 
 show_plot (self)
 
 load_plots (self, folder)
 

Public Attributes

 root = root
 
dict config_data = {}
 
dict ui_elements = {}
 
list plot_files = []
 
int current_plot_index = 0
 
 canvas = tk.Canvas(root)
 
 scrollbar = ttk.Scrollbar(root, orient="vertical", command=self.canvas.yview)
 
 scrollable_frame = ttk.Frame(self.canvas)
 
 window_frame = self.canvas.create_window((0, 0), window=self.scrollable_frame, anchor="nw")
 
 run_button = tk.Button(button_frame, text="Run Omicron Plot", command=self.run_omicron_plot)
 
 image_frame = tk.Frame(self.scrollable_frame)
 
 image_label = tk.Label(self.image_frame, text="No Plot Available", width=50, height=25, bg="gray")
 
 prev_button = tk.Button(nav_frame, text="⬅ Previous", command=self.show_previous_plot, state=tk.DISABLED)
 
 next_button = tk.Button(nav_frame, text="Next ➡", command=self.show_next_plot, state=tk.DISABLED)
 
 progress = ttk.Progressbar(self.scrollable_frame, orient="horizontal", length=300, mode="indeterminate")
 
 wsl_project_dir = output_folder
 
 photo = ImageTk.PhotoImage(image)
 

Detailed Description

Definition at line 892 of file GWeasy.py.

Constructor & Destructor Documentation

◆ __init__()

GWeasy.Omiviz.__init__ ( self,
root )

Definition at line 893 of file GWeasy.py.

Member Function Documentation

◆ create_file_selector()

GWeasy.Omiviz.create_file_selector ( self,
label,
key,
frame = None,
row = 0,
column = 0 )
Allows selecting either a single file or a folder containing `.root` files.

Definition at line 1017 of file GWeasy.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_output_path_selector()

GWeasy.Omiviz.create_output_path_selector ( self,
label,
key,
frame = None,
row = 0,
column = 0 )
Allows selecting an output folder.

Definition at line 998 of file GWeasy.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_widgets()

GWeasy.Omiviz.create_widgets ( self)

Definition at line 953 of file GWeasy.py.

Here is the call graph for this function:

◆ execute_command()

GWeasy.Omiviz.execute_command ( self,
command,
gps_start,
gps_end,
output_folder )
Runs the Omicron plot command inside a full WSL shell session with logging.

Definition at line 1130 of file GWeasy.py.

Here is the call graph for this function:

◆ load_plots()

GWeasy.Omiviz.load_plots ( self,
folder )
Loads the plots from WSL and updates the GUI.

Definition at line 1205 of file GWeasy.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_omicron_plot()

GWeasy.Omiviz.run_omicron_plot ( self)

Definition at line 1068 of file GWeasy.py.

◆ select_file_or_folder()

GWeasy.Omiviz.select_file_or_folder ( self,
var )
Allows selecting a folder (grabs all `.root` files) or an individual file.

Definition at line 1030 of file GWeasy.py.

Here is the caller graph for this function:

◆ select_output_folder()

GWeasy.Omiviz.select_output_folder ( self,
var )
Allows selecting an output folder.

Definition at line 1011 of file GWeasy.py.

Here is the caller graph for this function:

◆ show_next_plot()

GWeasy.Omiviz.show_next_plot ( self)
Scrolls forward through the plots.

Definition at line 940 of file GWeasy.py.

Here is the call graph for this function:

◆ show_plot()

GWeasy.Omiviz.show_plot ( self)
Displays the current plot in the GUI.

Definition at line 1166 of file GWeasy.py.

Here is the caller graph for this function:

◆ show_previous_plot()

GWeasy.Omiviz.show_previous_plot ( self)
Scrolls backward through the plots.

Definition at line 933 of file GWeasy.py.

Here is the call graph for this function:

◆ start_loading()

GWeasy.Omiviz.start_loading ( self)
Start the loading animation.

Definition at line 920 of file GWeasy.py.

Here is the caller graph for this function:

◆ stop_loading()

GWeasy.Omiviz.stop_loading ( self)
Stop the loading animation.

Definition at line 924 of file GWeasy.py.

Here is the caller graph for this function:

◆ update_navigation_buttons()

GWeasy.Omiviz.update_navigation_buttons ( self)
Updates the state of navigation buttons.

Definition at line 947 of file GWeasy.py.

Here is the caller graph for this function:

◆ update_progress()

GWeasy.Omiviz.update_progress ( self,
text )
Update progress based on Omicron output.

Definition at line 928 of file GWeasy.py.

Here is the caller graph for this function:

◆ valent()

GWeasy.Omiviz.valent ( self,
label,
key,
frame = None,
row = 0,
col = 0,
editable = True )

Definition at line 990 of file GWeasy.py.

Here is the caller graph for this function:

Member Data Documentation

◆ canvas

GWeasy.Omiviz.canvas = tk.Canvas(root)

Definition at line 901 of file GWeasy.py.

◆ config_data

dict GWeasy.Omiviz.config_data = {}

Definition at line 895 of file GWeasy.py.

◆ current_plot_index

int GWeasy.Omiviz.current_plot_index = 0

Definition at line 898 of file GWeasy.py.

◆ image_frame

GWeasy.Omiviz.image_frame = tk.Frame(self.scrollable_frame)

Definition at line 972 of file GWeasy.py.

◆ image_label

GWeasy.Omiviz.image_label = tk.Label(self.image_frame, text="No Plot Available", width=50, height=25, bg="gray")

Definition at line 975 of file GWeasy.py.

◆ next_button

GWeasy.Omiviz.next_button = tk.Button(nav_frame, text="Next ➡", command=self.show_next_plot, state=tk.DISABLED)

Definition at line 985 of file GWeasy.py.

◆ photo

GWeasy.Omiviz.photo = ImageTk.PhotoImage(image)

Definition at line 1191 of file GWeasy.py.

◆ plot_files

GWeasy.Omiviz.plot_files = []

Definition at line 897 of file GWeasy.py.

◆ prev_button

GWeasy.Omiviz.prev_button = tk.Button(nav_frame, text="⬅ Previous", command=self.show_previous_plot, state=tk.DISABLED)

Definition at line 982 of file GWeasy.py.

◆ progress

GWeasy.Omiviz.progress = ttk.Progressbar(self.scrollable_frame, orient="horizontal", length=300, mode="indeterminate")

Definition at line 987 of file GWeasy.py.

◆ root

GWeasy.Omiviz.root = root

Definition at line 894 of file GWeasy.py.

◆ run_button

GWeasy.Omiviz.run_button = tk.Button(button_frame, text="Run Omicron Plot", command=self.run_omicron_plot)

Definition at line 968 of file GWeasy.py.

◆ scrollable_frame

GWeasy.Omiviz.scrollable_frame = ttk.Frame(self.canvas)

Definition at line 903 of file GWeasy.py.

◆ scrollbar

GWeasy.Omiviz.scrollbar = ttk.Scrollbar(root, orient="vertical", command=self.canvas.yview)

Definition at line 902 of file GWeasy.py.

◆ ui_elements

dict GWeasy.Omiviz.ui_elements = {}

Definition at line 896 of file GWeasy.py.

◆ window_frame

GWeasy.Omiviz.window_frame = self.canvas.create_window((0, 0), window=self.scrollable_frame, anchor="nw")

Definition at line 910 of file GWeasy.py.

◆ wsl_project_dir

GWeasy.Omiviz.wsl_project_dir = output_folder

Definition at line 1117 of file GWeasy.py.


The documentation for this class was generated from the following file: