Refactors the lens and horn modules to have slightly cleaner class hierarchies to give them a little polish:
all instance attributes are now set through the constructor, which means objects are always valid and removes the need to check if properties are not None in the methods
add __repr__ magic methods for nice printing of objects
make dicts of the pre-existing parameterisations: this allows us to write nicer error messages with the possible options, while still being easy to add new ones
Note that this includes #37
Refactors the lens and horn modules to have slightly cleaner class hierarchies to give them a little polish:
None
in the methods__repr__
magic methods for nice printing of objectsdict
s of the pre-existing parameterisations: this allows us to write nicer error messages with the possible options, while still being easy to add new ones