Skip to content

labconfig should do some initialisation on config files #2

Open

Description

@philipstarkey

Original report (archived issue) by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).


When a LabConfig is instantiated, it should call a general initialisation function that tries to make sense of the labconfig file.

This should do things like:

  • Ensure the experiment name is a valid python module name
  • Automatically create a subfolder for the experiment in analysislib and labscriptlib, with an init.py in each (if they don't already exist).
  • Ensure paths to shared drive exist

And there are more things I'm sure, which are currently scattered throughout the programs that use labconfig, but ought to be in a consistent place.

This initialisation should be able to be suppressed with a keyword argument.

Perhaps also this is where setting of default arguments should live, rather than in the individual programs. We don't have 'runmanagerconfig' and 'BLACSconfig', so so long as we have one config file, all its defaults should probably live in the same place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions