Skip to content

Commit

Permalink
fixed copy to analysis group
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerum committed Jan 22, 2024
1 parent 66a001e commit f145edc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion saenopy/gui/common/plot_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_copy_to_menu(self, filename):
for index, folder in enumerate(self.data_folders):
name, checked, files, color = folder
act = QtWidgets.QAction(qta.icon("fa5s.circle", options=[dict(color=color)]), name, self)
def clicked(index=index):
def clicked(*, index=index):
self.list.setCurrentRow(index)
try:
self.add_files([filename])
Expand Down
2 changes: 1 addition & 1 deletion saenopy/gui/spheroid/analyze/plot_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class PlottingWindow(PlottingWindow):
settings_key = "saenopy_sheroid"
settings_key = "saenopy_spheroid"
file_extension = ".saenopySpheroid"

dt = 1
Expand Down
3 changes: 2 additions & 1 deletion saenopy/gui/tfm2d/modules/BatchEvaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np
import traceback

from saenopy.gui.tfm2d.modules.result import get_stacks2D
from saenopy.gui.tfm2d.modules.result import get_stacks2D, Result2D
from saenopy.gui.common import QtShortCuts

from .load_measurement_dialog import AddFilesDialog
Expand All @@ -28,6 +28,7 @@
class BatchEvaluate(BatchEvaluate):
settings_key = "Seanopy_deformation"
file_extension = ".saenopy2D"
result: Result2D = None

result_params = ["piv_parameters", "force_parameters"]

Expand Down
3 changes: 2 additions & 1 deletion saenopy/gui/tfm2d/modules/path_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

from saenopy.gui.common import QtShortCuts
from saenopy.gui.solver.modules.path_editor import PathChanger
from saenopy.gui.tfm2d.modules.result import Result2D


def start_path_change(parent, result):
def start_path_change(parent, result: Result2D):
path_editor = PathEditor(parent, result)
if not path_editor.exec():
return
Expand Down

0 comments on commit f145edc

Please sign in to comment.