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

Fixed float decimals v3 #1283

Merged
merged 6 commits into from
May 31, 2023
Merged

Conversation

jyang-TP
Copy link
Contributor

@jyang-TP jyang-TP commented May 30, 2023

Description

A RuntimeError was identified when generating MCNP inputs at BOEC/MOEC/EOEC for a downstream application. Specifically, in getting the top surface number in the global dictionary.

image
image

The issue was caused by the float decimals. MCNP method getSurfNum returns a surface number by the surface type and the associated value with 10 decimals (units.FLOAT_DIMENSION_DECIMALS).

This PR aims to resolve the float decimals issue. This RP has also updated the global parameter FLOAT_DIMENSION_DECIMALS to 8 digits in order to resolve the conflict with #1225.

@jyang-TP jyang-TP marked this pull request as ready for review May 30, 2023 19:06
@albeanth
Copy link
Member

@jyang-TP it looks like all of the proposed changes here are also within #1268. That said, can you/we close #1268 and just use this PR?

armi/reactor/converters/meshConverters.py Show resolved Hide resolved
armi/utils/units.py Show resolved Hide resolved
@jyang-TP
Copy link
Contributor Author

@albeanth Thanks. I will close PR #1268.

Copy link
Member

@albeanth albeanth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jyang-TP, please run black on your files changed to get CI to pass. also, please update the release notes. If you need help with either of these tasks, feel free to reach out here or offline.

@jyang-TP jyang-TP requested a review from albeanth May 31, 2023 19:22
@albeanth albeanth merged commit 2fd749a into terrapower:main May 31, 2023
drewj-usnctech added a commit to drewj-usnctech/armi that referenced this pull request Jun 1, 2023
* main: (23 commits)
  block converters preserve flags (terrapower#1271)
  Fixed float decimals v3 (terrapower#1283)
  Fixed string format error for snapshots (terrapower#1277)
  Pinning the versions of yamlize and ruamel (terrapower#1281)
  Releasing v0.2.7 (terrapower#1276)
  Creating verisons setting section (terrapower#1274)
  Adding to GlobalFluxOptions docstring (terrapower#1273)
  Harmonize material names and class names (terrapower#1270)
  Removing Component.getMassDensity (terrapower#1266)
  Cleaning up language for our versioning rules (terrapower#1175)
  Fixing the Settings Report in the Docs (terrapower#1264)
  Fixing getTemperatureAtDensity to use non-pseduo density (terrapower#1262)
  Fixing settings report docs from terrapower#1207 (terrapower#1263)
  Update test_components.py (terrapower#1261)
  Update gamma Uniform Mesh Converter (terrapower#1213)
  Updating way that settings report defaults are printed (terrapower#1207)
  Fixing UserPlugins.defineFlag (terrapower#1241)
  quick bug fix for PR 1239 (terrapower#1260)
  New Option to Control Lattice Physics Update Frequency (terrapower#1239)
  Fix a bug in database compare. (terrapower#1258)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants