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

[BUG] - Value Error when exporting Serpent format with UCARD #151

Open shimwell opened 4 months ago

shimwell commented 4 months ago

Describe the bug

the SerpentFormat attempts to use number formatting on a string with this section

{"void":<5d}

of this line on the main branch Line in code on main branch

https://github.com/GEOUNED-org/GEOUNED/blob/76ef697c7dca6a828c7498996ff3313859c872f2/src/geouned/GEOUNED/Write/SerpentFormat.py#L148

This crashes the code with the error message

ValueError: Unknown format code 'd' for object of type 'str'

To Reproduce

Steps to reproduce the behavior:

Set UCARD to a value (not None) and export to the serpent format Screenshot 2024-05-14 103351

Please complete the following information):