This is currently in the form of an ugly hack, but I found the workflow it supports to be very convenient.
I think it would be straightforward to clean up the implementation.
Local repository clone
# Using
# github: "local: /path/to/repository"
# in modeldb-run.yaml implies that we 'git clone /path/to/repository'.
# This is useful to tentatively explore the effect of
# model changes on results with different nrn versions
# without committing to github or before being ready to
# make a pull request
and even more convenient is a local repository copy
# Using
# github: "copy: /path/to/parentfolder"
# in modeldb-run.yaml implies that we
# 'cp -R /path/to/parentfolder/<id> <workingdir>'
# A copy differs from a clone in that local changes in
# the checkout are mirrored in the copy without having to
# be committed. Note the copy leaves out the .git and
# x86_64 folders.
though I haven't yet bothered to leave out the .git or x86_64 folders
One improvment might be to specify a list of ids in a separate yaml file with a format like
in order to avoid temporary changes to modeldb/modeldb-run.yaml
I found the copy to be more useful than the clone so copy alone would suffice. In fact it would probably suffice merely to have an environment variable like
github: "local: /path/to/repository" github: "copy: /path/to/parentfolder"
This is currently in the form of an ugly hack, but I found the workflow it supports to be very convenient. I think it would be straightforward to clean up the implementation.
Local repository clone
and even more convenient is a local repository copy
though I haven't yet bothered to leave out the .git or x86_64 folders
One improvment might be to specify a list of ids in a separate yaml file with a format like
in order to avoid temporary changes to modeldb/modeldb-run.yaml
I found the copy to be more useful than the clone so copy alone would suffice. In fact it would probably suffice merely to have an environment variable like
and any id folder at that location that matches an id specified in getmodels or runmodels is copied from there