Skip to content

Commit

Permalink
change reload text
Browse files Browse the repository at this point in the history
  • Loading branch information
zeptofine committed Oct 7, 2023
1 parent 0e4162e commit 83bd9a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions imdataset_creator/datarules/dataset_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ def df_with_types(self, types: DataTypeSchema | None = None):
def get_unfinished(
self,
) -> DataFrame:
assert self.producers, "No producers specified"

# check if producers are completely finished
type_schema: DataTypeSchema = self.type_schema
self.comply_to_schema(type_schema, in_place=True)
Expand Down
4 changes: 3 additions & 1 deletion imdataset_creator/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(self, cfg_path=Path("config.json")):
(save_action := QAction("Save", self)).triggered.connect(self.save_config)
(save_as_action := QAction("Save As...", self)).triggered.connect(self.save_config_as)
(open_action := QAction("Open...", self)).triggered.connect(self.open_config)
(reload_action := QAction("Open...", self)).triggered.connect(self.load_config)
(reload_action := QAction("Reload", self)).triggered.connect(self.load_config)
(clear_action := QAction("clear", self)).triggered.connect(self.clear)
save_action.setShortcut(QKeySequence("Ctrl+S"))
save_as_action.setShortcut(QKeySequence("Ctrl+Shift+S"))
Expand All @@ -152,6 +152,8 @@ def __init__(self, cfg_path=Path("config.json")):
# (get_files := QAction("get files", self)).triggered.connect(self.gather_files)
# (run_builder := QAction("run builder", self)).triggered.connect(self.run_builder)
# self.addActions([get_producers, get_rules, get_builder, get_files, run_builder])
if self.cfg_path.exists():
self.load_config()

def get_config(self) -> MainConfig:
return {
Expand Down

0 comments on commit 83bd9a3

Please sign in to comment.