Skip to content

Commit

Permalink
move the presets
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Oct 28, 2024
1 parent 35654d9 commit b8d4675
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/depiction_targeted_preproc/pipeline_config/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PipelineParametersPreset(Model, use_enum_values=True, validate_default=Tru
@classmethod
def get_preset_path(cls, name: str) -> Path:
"""Returns the path to the preset file with the specified name."""
return Path(__file__).parents[1] / "app" / "config_presets" / f"{name}.yml"
return Path(__file__).parent / "config_presets" / f"{name}.yml"

@classmethod
def load_named_preset(cls, name: str) -> PipelineParametersPreset:
Expand Down

0 comments on commit b8d4675

Please sign in to comment.