Skip to content

Commit

Permalink
move config, training_profiles into sleap dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ntabris committed Jun 24, 2019
1 parent d45adcf commit eda4c03
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include config/*.yaml
include training_profiles/*.json
include sleap/config/*.yaml
include sleap/training_profiles/*.json
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions sleap/gui/active.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def __init__(self, labels_filename: str, labels: Labels, *args, **kwargs):
from sleap.nn.model import ModelOutputType
from sleap.nn.training import TrainingJob

learning_yaml = resource_filename(Requirement.parse("sleap"),"config/active.yaml")
learning_yaml = resource_filename(Requirement.parse("sleap"),"sleap/config/active.yaml")
self.form_widget = YamlFormWidget(yaml_file=learning_yaml, title="Active Learning Settings")

# load list of job profiles from directory
self.job_options = find_saved_jobs(resource_filename(Requirement.parse("sleap"),"training_profiles"))
self.job_options = find_saved_jobs(resource_filename(Requirement.parse("sleap"),"sleap/training_profiles"))

# form ui

Expand Down
4 changes: 2 additions & 2 deletions sleap/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def filename(self, x):

def initialize_gui(self):

shortcut_yaml = resource_filename(Requirement.parse("sleap"),"config/shortcuts.yaml")
shortcut_yaml = resource_filename(Requirement.parse("sleap"),"sleap/config/shortcuts.yaml")
with open(shortcut_yaml, 'r') as f:
shortcuts = yaml.load(f, Loader=yaml.SafeLoader)

Expand Down Expand Up @@ -334,7 +334,7 @@ def update_instance_table_selection():
hbw = QWidget(); hbw.setLayout(hb)
suggestions_layout.addWidget(hbw)

suggestions_yaml = resource_filename(Requirement.parse("sleap"),"config/suggestions.yaml")
suggestions_yaml = resource_filename(Requirement.parse("sleap"),"sleap/config/suggestions.yaml")
form_wid = YamlFormWidget(yaml_file=suggestions_yaml, title="Generate Suggestions")
form_wid.mainAction.connect(self.generateSuggestions)
suggestions_layout.addWidget(form_wid)
Expand Down
2 changes: 1 addition & 1 deletion sleap/gui/training_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TrainingEditor(QtWidgets.QDialog):
def __init__(self, profile_filename: Optional[str]=None, *args, **kwargs):
super(TrainingEditor, self).__init__()

form_yaml = resource_filename(Requirement.parse("sleap"),"config/training_editor.yaml")
form_yaml = resource_filename(Requirement.parse("sleap"),"sleap/config/training_editor.yaml")

self.form_widgets = dict()
self.form_widgets["model"] = YamlFormWidget(form_yaml, "model", "Network Architecture")
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit eda4c03

Please sign in to comment.