Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
shimwell opened this issue May 14, 2024 · 0 comments
Open

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

shimwell opened this issue May 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@shimwell
Copy link
Collaborator

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

f'cell {index:<5d} {self.Options["Universe"]} {"void":<5d} '

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):

  • OS: WSL
  • GEOUNED version dev and main branches
  • Python version 3.11
@shimwell shimwell added the bug Something isn't working label May 14, 2024
@alexvalentine94 alexvalentine94 self-assigned this Jun 14, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants