openmsr / CAD_to_OpenMC

code to target the conversion from a step-file to a h5m-geometry for neutronics
MIT License
25 stars 16 forks source link

Allow tags to be applied only to some objects #82

Closed ebknudsen closed 3 days ago

ebknudsen commented 7 months ago

In cases you only want to retag some materials as opposed to all. This is currently not supported. for instance you might want to do: a=ab.Assembly('input.step') a.import_stp_files(tags={'matA*':'matB'}) which would map all materials with names beginning with matA to the material matB, but still retain the materials named matC as matC.

ebknudsen commented 3 days ago

Fixed by 8dfa70f