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

Developer friendly rework #41

Merged
merged 6 commits into from
Sep 19, 2023
Merged

Conversation

sstucker
Copy link
Contributor

@sstucker sstucker commented Sep 18, 2023

Because more folks are contributing to this, I'm making an effort to make the templating system I set up better and clearer.

Previously, I wrote code in header.py and footer.py files and copied these to create the library snirf/pysnirf2.py... this was a redundant and unclear design. Now, edits to the library file itself are valid AS LONG AS THEY DO NOT FALL WITHIN THE CENTRAL PORTION OF THE CODE. This section is still supposed to be generated from the jinja template.

This part of the code is clearly marked, and is largely implementations of the classes laid out above. Special cases are implemented via overrides below this part.

Also includes a quick fix to #38

@sstucker sstucker linked an issue Sep 18, 2023 that may be closed by this pull request
@sstucker sstucker merged commit 29acc27 into BUNPC:main Sep 19, 2023
@sstucker sstucker deleted the developer-friendly-rework branch September 19, 2023 18:15
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

Successfully merging this pull request may close these issues.

copy() creates an empty file called r+.snirf
1 participant