BUNPC / pysnirf2

Python package for reading, writing and validating Shared Near Infrared Spectroscopy Format (SNIRF) files
GNU General Public License v3.0
15 stars 11 forks source link

Developer friendly rework #41

Closed sstucker closed 11 months ago

sstucker commented 11 months ago

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