Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ketos ketos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • public_projects
  • ketosketos
  • Merge requests
  • !227

Closed
Created Feb 03, 2022 by Oliver Kirsebom@kirsebomOwner
  • Report abuse
Report abuse

Ensure dir exists

  • Overview 2
  • Commits 6
  • Pipelines 1
  • Changes 6

This is a fairly minor improvement. Should be a quick review task.

I have added the argument create_dir to the save_model method in the NNInterface class as well as the following methods/classes in the database_interface module:

  • open_file
  • AudioWriter
  • create_database

By default create_dir=True. This ensures that if the output directory does not already exist, it will be automatically created.

This avoids frustrating situations where a database creation or model training scripts fails after running for a long time when it attempts to save the outputs to a non-existing directory at the end.

Resolves this issue: #158 (closed)

Edited Feb 03, 2022 by Oliver Kirsebom
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: ensure_dir_exists