You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so with the toml package (which we are installing with the core library), you can get to this as follows:
import toml
data = toml.load('./path/to/manifest.toml')
print(data['study_prefix'])
We can look into building this into templates/helper functions as we harden them for inclusion in the core library, but I think if you're writing custom generators inside of study directories, we're not being implicit about the way users are doing that, so it's a little bit trickier - it would more likely look something like from cumulus_library.helpers import get_study_prefix or something like this.
If you're ok with this, I'd like to close this issue here and move it to the core library.
(we could, alternatively, maintain a file in this template to accomplish the same thing, but I think putting it in core would be less of a maintenance headache here).
pyproject.toml contains a pointer of which files to include
this is implicitly the "study prefix"
would be nice to say "from my_study_name import study_prefix" or equivlant
priority: low feature request
The text was updated successfully, but these errors were encountered: