hotfixes
This commit is contained in:
@@ -21,3 +21,6 @@ class ProjectPaths(BaseModel):
|
||||
@field_validator("*", mode="before")
|
||||
def convert_to_path(cls, v):
|
||||
return Path(v) if not isinstance(v, Path) else v
|
||||
|
||||
def get_data_path(self, filename: str) -> Path:
|
||||
return self.data_dir / filename
|
||||
|
||||
@@ -44,18 +44,3 @@ def ensure_directories(config: "PipelineConfig") -> None:
|
||||
Path(directory).mkdir(parents=True, exist_ok=True)
|
||||
|
||||
logging.info("Ensured all required directories exist")
|
||||
|
||||
|
||||
def get_data_file_path(filename: str, config: "PipelineConfig") -> Path:
|
||||
"""Get full path for a data file"""
|
||||
return config.paths.data_dir / filename
|
||||
|
||||
|
||||
def get_model_file_path(filename: str, config: "PipelineConfig") -> Path:
|
||||
"""Get full path for a model file"""
|
||||
return config.paths.models_dir / filename
|
||||
|
||||
|
||||
def get_output_file_path(filename: str, config: "PipelineConfig") -> Path:
|
||||
"""Get full path for an output file"""
|
||||
return config.paths.outputs_dir / filename
|
||||
|
||||
Reference in New Issue
Block a user