GEOUNED-org / GEOUNED

A tool to convert CAD to CSG & CSG to CAD for Monte Carlo transport codes
European Union Public License 1.2
56 stars 30 forks source link

Add settings class #149

Closed shimwell closed 4 months ago

shimwell commented 4 months ago

this PR introduces a settings class to hold many of the class attributes that currently go to CadToCsg

The settings class has been added to the docs in the python api section and the usage example has been updated to show how the settings is used.

I've added doc strings, type hints to the class to provide the good documentation.

I've also added getter and setter methods with some type checking to help guard against incorrect attribute assignment and inform the user when they enter the incorrect type for an attribute

shimwell commented 4 months ago

This one is ready for review when you have time @alberto743 or @psauvan

alberto743 commented 4 months ago

Nice idea!