Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
sronilsson committed Dec 29, 2024
2 parents 8391b18 + 96e0253 commit 528d1b3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion simba/SimBA.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
from simba.ui.pop_ups.batch_preprocess_pop_up import BatchPreProcessPopUp
from simba.ui.pop_ups.boolean_conditional_slicer_pup_up import \
BooleanConditionalSlicerPopUp
from simba.ui.pop_ups.check_videos_seekable_pop_up import \
CheckVideoSeekablePopUp
from simba.ui.pop_ups.clf_add_remove_print_pop_up import (
AddClfPopUp, PrintModelInfoPopUp, RemoveAClassifierPopUp)
from simba.ui.pop_ups.clf_annotation_counts_pop_up import \
Expand Down Expand Up @@ -108,7 +110,6 @@
from simba.ui.pop_ups.roi_analysis_time_bins_pop_up import \
ROIAnalysisTimeBinsPopUp
from simba.ui.pop_ups.roi_features_plot_pop_up import VisualizeROIFeaturesPopUp
from simba.ui.pop_ups.check_videos_seekable_pop_up import CheckVideoSeekablePopUp
from simba.ui.pop_ups.roi_size_standardizer_popup import \
ROISizeStandardizerPopUp
from simba.ui.pop_ups.roi_tracking_plot_pop_up import VisualizeROITrackingPopUp
Expand Down
12 changes: 8 additions & 4 deletions simba/ui/pop_ups/check_videos_seekable_pop_up.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import os
from datetime import datetime
from simba.mixins.pop_up_mixin import PopUpMixin
from simba.ui.tkinter_functions import SimbaCheckbox, DropDownMenu, FileSelect, FolderSelect, SimbaButton
from simba.utils.enums import Formats, Options
from tkinter import *

from simba.mixins.pop_up_mixin import PopUpMixin
from simba.ui.tkinter_functions import (DropDownMenu, FileSelect, FolderSelect,
SimbaButton, SimbaCheckbox)
from simba.utils.checks import check_if_dir_exists, is_valid_video_file
from simba.utils.read_write import find_files_of_filetypes_in_directory, get_desktop_path
from simba.utils.enums import Formats, Options
from simba.utils.read_write import (find_files_of_filetypes_in_directory,
get_desktop_path)
from simba.video_processors.video_processing import is_video_seekable


class CheckVideoSeekablePopUp(PopUpMixin):
"""
GUI pop-up window for checking if a video, or a directory of videos, are seekable.
Expand Down
3 changes: 2 additions & 1 deletion simba/video_processors/video_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
check_if_hhmmss_timestamp_is_valid_part_of_video,
concatenate_videos_in_folder, find_all_videos_in_directory, find_core_cnt,
find_files_of_filetypes_in_directory, get_fn_ext, get_video_meta_data,
read_config_entry, read_config_file, read_frm_of_video, read_img_batch_from_video_gpu)
read_config_entry, read_config_file, read_frm_of_video,
read_img_batch_from_video_gpu)
from simba.utils.warnings import (FileExistWarning, FrameRangeWarning,
InValidUserInputWarning,
SameInputAndOutputWarning)
Expand Down

0 comments on commit 528d1b3

Please sign in to comment.