opihiexarata.gui.old_automatic module
This is where the automatic mode window is implemented.
- class opihiexarata.gui.old_automatic.OpihiAutomaticWindow[source]
Bases:
QMainWindow
- __connect_push_button_change_directory() None
The connection for the button to change the automatic fetch directory.
- Parameters:
None –
- Return type:
None
- __connect_push_button_start() None
This enables the automatic active mode by changing the flag and starting the process.
- Parameters:
None –
- Return type:
None
- __connect_push_button_stop() None
This disables the automatic active mode by changing the flag. The loop itself should detect that the flag has changed. It finishes the current process but does not fetch any more.
- Parameters:
None –
- Return type:
None
- __connect_push_button_trigger() None
This does one process, fetching a single image and processing it as normal. However, it does not trigger the automatic mode loop as it is built for a single image only.
- Parameters:
None –
- Return type:
None
- __init__() None [source]
The automatic GUI window for OpihiExarata. This interacts with the user with regards to the automatic solving mode of Opihi.
- Parameters:
None –
- Return type:
None
- __init_gui_connections() None
Creating the function connections for the GUI interface.
- Parameters:
None –
- Return type:
None
- __init_preprocess_solution()
Initialize the preprocessing solution. The preprocessing files should be specified in the configuration file.
- Parameters:
None –
- Return type:
None
- __refresh_dynamic_label_text() None
Refreshes the GUI window’s dynamic text.
- Parameters:
None –
- Return type:
None
- __write_zero_point_record_to_database(opihi_solution: OpihiSolution) None
This function writes the zero point information assuming a solved photometric solution. This function is so that threading this process away is a lot easier.
- Parameters:
opihi_solution (OpihiSolution) – The solution class of the image.
- Return type:
None
- _automatic_triggering_check_stops() bool [source]
This function checks for the stops to stop the automatic triggering of the next image.
- Parameters:
None –
- Returns:
stop_check – This is the flag which signifies if the triggering should stop or not. If True, the triggering should stop.
- Return type:
bool
- _automatic_triggering_infinite_loop() None [source]
This is where the actual infinite loop is done.
All of the stops are checked before a new trigger is executed.
- Parameters:
None –
- Return type:
None
- automatic_triggering() None [source]
This function executes the continuous running automatic mode loop.
All of the stops are checked before a new trigger is executed.
- Parameters:
None –
- Return type:
None
- fetch_new_filename() str [source]
This function fetches a new fits filename based on the most recent filename within the automatic fetching directory.
- Parameters:
None –
- Returns:
fetched_filename – The filename that was fetched. It is the most recent file added to the automatic fetching directory.
- Return type:
string
- refresh_window() None [source]
Refreshes the GUI window with new information where available.
- Parameters:
None –
- Return type:
None
- reset_window() None [source]
This function resets the window to the default values or parameters
- Parameters:
None –
- Return type:
None
- solve_astrometry_photometry_single_image(filename: str) OpihiSolution [source]
This solves for the astrometric and photometric solutions of a provided file. The engines are provided based on the dropdown menus.
Note this calculation does not affect the opihi_solution instance of the class. That is a job for a different function.
- Parameters:
filename (string) – The filename of the fits file to be solved.
- Returns:
opihi_solution – The solution with the astrometry and photometry engines solved.
- Return type:
- staticMetaObject = PySide6.QtCore.QMetaObject("OpihiAutomaticWindow" inherits "QMainWindow": )
- trigger_next_image_solve() None [source]
This function triggers the next iteration of the automatic solving loop.
- Parameters:
None –
- Return type:
None
- verify_new_filename(fetched_filename: str) bool [source]
This function verifies if the new filename is actually new, or it is a file that has already been fetched before.
- Parameters:
fetched_filename (string) – The filename which was fetched which will be verified.
- Returns:
verification – The state of the verification that the fetched file is a new file. If True, it is a valid and new file to be solved.
- Return type:
bool