Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow suffixes to .structure files #1

Open
dbetchkal opened this issue May 10, 2017 · 1 comment
Open

allow suffixes to .structure files #1

dbetchkal opened this issue May 10, 2017 · 1 comment

Comments

@dbetchkal
Copy link
Member

dbetchkal commented May 10, 2017

It would be very helpful to allow structure files to have suffixes.

For example, ".structure_MORA.txt" or ".structure_AKR_20170505.txt" such that it's easier to track which structure files are which.

Alternatively/additionally it'd be nice to have a way to add a comment in the header of each structure file that would allow the same information to be stored.

@gjoseph92
Copy link
Member

You can add comments in structure files by beginning the line with a # character, just like Python. Of course, this is undocumented. Whoops. See the DENA structure file for an example.

Suffixes is a good idea. It's completely doable. But not done. To do it, you'd just define structureFileName as a regex, and then search for that regex around here.

It's worth noting, though, that you can name structure files whatever you want. iyore won't find them automatically, but you can alway just provide the full path to the structure file (iyore.Dataset("Data/MORA/.structure_MORA.txt")). Which isn't very convenient, I know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants