run_gui¶
-
seas.gui.run_gui(components: dict, rotate: int = 0, savepath: Optional[str] = None, default_assignment: Optional[numpy.ndarray] = None) → dict[source]¶ Create a tkinter GUI to select noise components from ica-decomposition components file. If hdf5 information is given using a string input to components, or a savepath which is a valid hdf5 file, component artifact assignment will be saved to the file.
Returns toggle, a boolean array of either True or False. Components that have been determined to be noise are ‘True’, components to keep are ‘False’. Optional toggle input is a boolean of starting values for noise_components.
- Parameters
components – A dictionary containing the experiment and decomposition information.
rotate – An integer number of counterclockwise rotations.
savepath – Where to save or load component information from.
default_assignment – The default assignment of which components are signal or artifact.
- Returns
The components dict, updated with any new region assignment, or artifact assignment, if applicable.
- Return type
components