Skip to content

Commit

Permalink
poster
Browse files Browse the repository at this point in the history
  • Loading branch information
sronilsson committed Feb 7, 2025
1 parent b18e906 commit 3eac80a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions docs/credits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Who writes this stuff??
==========================================================

SimBA was originally written in the Sam Golden lab at the University of Washington during 2019-2020, by postdoc `Simon Nilsson <https://github.com/sronilsson>`_
with the help from lab manager `Jia Jie Choong <https://github.com/inoejj>`_. A related plotly dashboard (not maintained as of 2020)
with the help from lab manager `Jia Jie Choong <https://github.com/inoejj>`_ and PhD student `Nastacia Goodwin <https://github.com/goodwinnastacia>`_. A related plotly dashboard (not maintained as of 2020)
was also written by `Sophia Hwang <https://github.com/sophihwang26>`_ and `Aasiya Islam <https://github.com/aasiya-islam>`_.

The code written in the Sam Golden lab is no longer maintained or supported by any individuals, documentation, or repository.
This early code can be a little tricky to work with - as it is not object oriented, and has no unit test and checks etc. - but if needed, the code be found by installing `simba-uw-tf-dev` version prior to `0.77.0` through pypi.
This early code can be a little tricky to work with - as it is not object oriented, and has no test and checks etc. - but if needed, the code be found by installing `simba-uw-tf-dev` version prior to `0.77.0` through pypi.

`Simon Nilsson <https://github.com/sronilsson>`_ left the Golden lab in 2020 - and since then - he maintains SimBA in his spare time from North Carolina.
As of October 2020, the SimBA codebase, SimBA Github repository, SimBA pip package, SimBA API, SimBA documentation, and SimBA supports channels, are maintained
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SimBA presentations and workflow
Workflow diagram
----------------------------------
.. image:: ../_static/img/simba_workflow.png
:width: 2000
:width: 1000
:align: center

Download workflow PDF :download:`pdf <../_static/pdf/SimBA_workflow.pdf>`
Expand All @@ -13,7 +13,7 @@ Download workflow PDF :download:`pdf <../_static/pdf/SimBA_workflow.pdf>`
SimBA Poster
----------------------------------
.. image:: ../_static/img/simba_sam_poster_2.webp
:width: 2000
:width: 1000
:align: center

Download poster PDF :download:`pdf <../_static/pdf/simba_poster_sam_2.pdf>`
Expand All @@ -22,7 +22,7 @@ Download poster PDF :download:`pdf <../_static/pdf/simba_poster_sam_2.pdf>`
SimBA explainability slides
----------------------------------
.. image:: ../_static/img/explainability_slide.webp
:width: 2000
:width: 1000
:align: center
:target: https://osf.io/f9ws3/

Expand Down
27 changes: 13 additions & 14 deletions simba/ui/pop_ups/batch_preprocess_pop_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,31 @@


class BatchPreProcessPopUp(PopUpMixin):
"""
:example:
>>> BatchPreProcessPopUp()
"""

def __init__(self):
super().__init__(title="BATCH PROCESS VIDEO", size=(600, 400))
selections_frm = CreateLabelFrameWithIcon(parent=self.main_frm, header="SELECTIONS", icon_name=Keys.DOCUMENTATION.value, icon_link=Links.BATCH_PREPROCESS.value,)
self.input_folder_select = FolderSelect(selections_frm, "INPUT VIDEO DIRECTORY:", title="Select Folder with Input Videos", lblwidth=20,)
self.output_folder_select = FolderSelect(selections_frm, "OUTPUT VIDEO DIRECTORY:", title="Select Folder for Output videos", lblwidth=20)
self.input_folder_select = FolderSelect(selections_frm, "INPUT VIDEO DIRECTORY:", title="Select Folder with Input Videos", lblwidth=30,)
self.output_folder_select = FolderSelect(selections_frm, "OUTPUT VIDEO DIRECTORY:", title="Select Folder for Output videos", lblwidth=30)

confirm_btn = SimbaButton(parent=selections_frm, txt="CONFIRM", img='tick', txt_clr='blue', font=Formats.FONT_REGULAR.value, cmd=self.run)
selections_frm.grid(row=0, column=0, sticky=NW)
self.input_folder_select.grid(row=0, column=0, sticky=NW)
self.output_folder_select.grid(row=1, column=0, sticky=NW)
confirm_btn.grid(row=2, column=0, sticky=NW)
#self.main_frm.mainloop()

def run(self):
if not os.path.isdir(self.input_folder_select.folder_path):
raise NotDirectoryError(msg=f"INPUT folder dir ({self.input_folder_select.folder_path}) is not a valid directory.", source=self.__class__.__name__,)
if not os.path.isdir(self.output_folder_select.folder_path):
raise NotDirectoryError(
msg=f"OUTPUT folder dir ({self.output_folder_select.folder_path}) is not a valid directory.",
source=self.__class__.__name__,
)
if (
self.output_folder_select.folder_path
== self.input_folder_select.folder_path
):
raise DuplicationError(
msg="The INPUT directory and OUTPUT directory CANNOT be the same folder",
source=self.__class__.__name__,
)
raise NotDirectoryError(msg=f"OUTPUT folder dir ({self.output_folder_select.folder_path}) is not a valid directory.", source=self.__class__.__name__)
if (self.output_folder_select.folder_path == self.input_folder_select.folder_path):
raise DuplicationError(msg="The INPUT directory and OUTPUT directory CANNOT be the same folder", source=self.__class__.__name__,)
else:
batch_preprocessor = BatchProcessFrame(
input_dir=self.input_folder_select.folder_path,
Expand All @@ -50,3 +47,5 @@ def run(self):
batch_preprocessor.create_video_rows()
batch_preprocessor.create_execute_btn()
batch_preprocessor.main_frm.mainloop()


2 changes: 1 addition & 1 deletion simba/ui/pop_ups/outlier_settings_pop_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self, config_path: Union[str, os.PathLike]):
padx=5,
)
self.agg_type_dropdown = DropDownMenu(
agg_type_frm, "Aggregation method:", ["mean", "median"], "15"
agg_type_frm, "Aggregation method:", ["mean", "median"], "20"
)
self.agg_type_dropdown.setChoices("median")
self.agg_type_dropdown.grid(row=0, column=0, sticky=NW)
Expand Down

0 comments on commit 3eac80a

Please sign in to comment.