edmundsj / rcwa

Rigorous Coupled Wave Analysis for the calculation of Photonic Crystal R/T spectra
MIT License
93 stars 29 forks source link

Stabilize and systematize user-facing API #30

Closed edmundsj closed 2 years ago

edmundsj commented 2 years ago

Currently, arguments to user-facing functions are an awkward mixture of camelCase names and underscore_names. These should all be changed to using underscores, and shortened where possible. Additionally, there are a couple of methods whose arguments are reversed compared to what they should be (such as Crystal()). These should all be changed for consistency. I'd like to break everything at once to avoid the pain of repeatedly breaking the API. Once version 1 is released, that version will have a stable API (except with the potential addition of keyword arguments).

Here is a proposed set of standard arguments:

Some other random todos:

edmundsj commented 2 years ago

Most of these have been addressed in 22383ff