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

Public Member Functions

 __init__ (self, root)
 
 setup_execution_tab (self)
 
 select_time_csv (self)
 
 select_channel_csv (self)
 
 select_gwfout_dir (self)
 
 toggle_execution (self)
 
 run_gravfetch_script (self)
 
 append_output (self, text)
 
 save_channel_history (self)
 

Public Attributes

 root = root
 
str time_csv_file = ""
 
str channel_csv_file = ""
 
bool execution_running = False
 
 process = None
 
str gwfout_path = "./gwfout/"
 
list loaded_channels = []
 
 terminal = TerminalFrame(self.root, row=5, column=0, columnspan=2, height=20, width=80)
 
 status_bar_frame = tk.Frame(self.root, bg="lightgray")
 
 status_label = tk.Label(self.status_bar_frame, text="Idle", fg="black", bg="lightgray", anchor="w")
 
 time_button = tk.Button(self.root, text="Select Time CSV", command=self.select_time_csv)
 
 channel_button = tk.Button(self.root, text="Select Channel CSV", command=self.select_channel_csv)
 
 gwf_button = tk.Button(self.root, text="Select Output (GWF) Dir", command=self.select_gwfout_dir)
 
 start_stop_button = tk.Button(self.root, text="Start Execution", command=self.toggle_execution)
 
 execution_thread = threading.Thread(target=self.run_gravfetch_script, daemon=True)
 

Detailed Description

Definition at line 605 of file GWeasy.py.

Constructor & Destructor Documentation

◆ __init__()

GWeasy.GravfetchApp.__init__ ( self,
root )

Definition at line 606 of file GWeasy.py.

Member Function Documentation

◆ append_output()

GWeasy.GravfetchApp.append_output ( self,
text )
Send output to the terminal

Definition at line 797 of file GWeasy.py.

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

◆ run_gravfetch_script()

GWeasy.GravfetchApp.run_gravfetch_script ( self)
Runs the Gravfetch script logic directly within the GUI.

Definition at line 700 of file GWeasy.py.

Here is the call graph for this function:

◆ save_channel_history()

GWeasy.GravfetchApp.save_channel_history ( self)
Save the selected channels to a JSON file for persistence.

Definition at line 800 of file GWeasy.py.

Here is the caller graph for this function:

◆ select_channel_csv()

GWeasy.GravfetchApp.select_channel_csv ( self)
Open file dialog for channel CSV file.

Definition at line 660 of file GWeasy.py.

◆ select_gwfout_dir()

GWeasy.GravfetchApp.select_gwfout_dir ( self)
Open file dialog for output dir (folder) selection.

Definition at line 665 of file GWeasy.py.

◆ select_time_csv()

GWeasy.GravfetchApp.select_time_csv ( self)
Open file dialog for time CSV file.

Definition at line 655 of file GWeasy.py.

◆ setup_execution_tab()

GWeasy.GravfetchApp.setup_execution_tab ( self)
Sets up the Execution tab with buttons, output terminal, etc.

Definition at line 630 of file GWeasy.py.

◆ toggle_execution()

GWeasy.GravfetchApp.toggle_execution ( self)
Start or stop the execution of the Gravfetch script.

Definition at line 675 of file GWeasy.py.

Here is the call graph for this function:

Member Data Documentation

◆ channel_button

GWeasy.GravfetchApp.channel_button = tk.Button(self.root, text="Select Channel CSV", command=self.select_channel_csv)

Definition at line 643 of file GWeasy.py.

◆ channel_csv_file

str GWeasy.GravfetchApp.channel_csv_file = ""

Definition at line 609 of file GWeasy.py.

◆ execution_running

bool GWeasy.GravfetchApp.execution_running = False

Definition at line 610 of file GWeasy.py.

◆ execution_thread

GWeasy.GravfetchApp.execution_thread = threading.Thread(target=self.run_gravfetch_script, daemon=True)

Definition at line 697 of file GWeasy.py.

◆ gwf_button

GWeasy.GravfetchApp.gwf_button = tk.Button(self.root, text="Select Output (GWF) Dir", command=self.select_gwfout_dir)

Definition at line 645 of file GWeasy.py.

◆ gwfout_path

GWeasy.GravfetchApp.gwfout_path = "./gwfout/"

Definition at line 612 of file GWeasy.py.

◆ loaded_channels

list GWeasy.GravfetchApp.loaded_channels = []

Definition at line 613 of file GWeasy.py.

◆ process

GWeasy.GravfetchApp.process = None

Definition at line 611 of file GWeasy.py.

◆ root

GWeasy.GravfetchApp.root = root

Definition at line 607 of file GWeasy.py.

◆ start_stop_button

GWeasy.GravfetchApp.start_stop_button = tk.Button(self.root, text="Start Execution", command=self.toggle_execution)

Definition at line 649 of file GWeasy.py.

◆ status_bar_frame

GWeasy.GravfetchApp.status_bar_frame = tk.Frame(self.root, bg="lightgray")

Definition at line 633 of file GWeasy.py.

◆ status_label

GWeasy.GravfetchApp.status_label = tk.Label(self.status_bar_frame, text="Idle", fg="black", bg="lightgray", anchor="w")

Definition at line 637 of file GWeasy.py.

◆ terminal

GWeasy.GravfetchApp.terminal = TerminalFrame(self.root, row=5, column=0, columnspan=2, height=20, width=80)

Definition at line 628 of file GWeasy.py.

◆ time_button

GWeasy.GravfetchApp.time_button = tk.Button(self.root, text="Select Time CSV", command=self.select_time_csv)

Definition at line 641 of file GWeasy.py.

◆ time_csv_file

str GWeasy.GravfetchApp.time_csv_file = ""

Definition at line 608 of file GWeasy.py.


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