Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

🐛 Reading of float variables in mfile.py #3600

Closed
chris-ashe opened this issue Mar 21, 2025 · 0 comments · Fixed by #3604
Closed

🐛 Reading of float variables in mfile.py #3600

chris-ashe opened this issue Mar 21, 2025 · 0 comments · Fixed by #3604
Assignees
Labels
Bug Something isn't working

Comments

@chris-ashe
Copy link
Collaborator

chris-ashe commented Mar 21, 2025

Describe the bug

In plot_proc.py when trying to import from an MFILE using mfile_data.data the following error occurs:

Can't parse value in MFILE: ['helium']
Traceback (most recent call last):
  File "/home/PROCESS/process/io/mfile.py", line 361, in sort_value
    return float(value_words[0])
ValueError: could not convert string to float: 'helium'

This was speicfically the case when importing i_fw_coolant_type as such:

i_fw_coolant_type = mfile_data["i_fw_coolant_type"].get_scan(scan)

@chris-ashe chris-ashe added the Bug Something isn't working label Mar 21, 2025
@chris-ashe chris-ashe changed the title [BUG] Reading of float variables in mfile.py 🐛 Reading of float variables in mfile.py Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants