Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • kadlu kadlu
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 17
    • Issues 17
    • 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
  • kadlukadlu
  • Issues
  • #82

Closed
Open
Created May 07, 2021 by Jillian Anderson@jilliana

Storage Configuration requires Kernel Restart

In trying to configure a custom storage location using kadlu.storage_cfg(setdir=PATH/HERE) I encountered some unexpected behaviour.

I added a line to my notebook that set the storage location using kadlu.storage_cfg(setdir=PATH/HERE) and then tried to run the rest of the notebook using the new specified location. However, for the location change to take effect, I had to restart the notebook kernel. Otherwise, it continued to use the previous (default) storage location despite subsequent calls to kadlu.storage_cfg() returning the updated storage location.

When I dug into the code, it seems like this behaviour is happening b/c the db & conn objects (in era5.py, etc) are instantiated when kadlu is originally imported and don't have a chance to adjust to the newly configured storage location.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking