IanFooMZ / SonyBayerFilter

Other
1 stars 0 forks source link

Use Jinja rather than YAML #10

Closed Tyronitar closed 6 months ago

Tyronitar commented 8 months ago

Jinja allows configuration files where you can use variables, i.e. reference other values in the same file. This means we don't need all that gross code in sbc.py

Tyronitar commented 8 months ago

This may need to be done before we're done with the LumericalSimulation class. Some of the objects we want to add require values from the Config, for example:

design_efield_monitor['x span'] = device_size_lateral_um * 1e-6

It may also be worth looking into combining the Config file and simulation JSON files.