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

Update the check for a jagged array during _writeParams #2051

Merged
merged 10 commits into from
Jan 23, 2025
3 changes: 2 additions & 1 deletion armi/bookkeeping/db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,8 @@ def _getShape(arr: [np.ndarray, List, Tuple]):
elif isinstance(arr, (list, tuple)):
return (len(arr),)
else:
return (1,)
# not a list, tuple, or array (likely int, float, or None)
return 1

c = comps[0]
groupName = c.__class__.__name__
Expand Down
1 change: 1 addition & 0 deletions doc/release/0.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ API Changes

Bug Fixes
---------
#. Fix database class bug in check for jagged arrays. (`PR#XXXX <https://github.com/terrapower/armi/pull/XXXX>`_)
opotowsky marked this conversation as resolved.
Show resolved Hide resolved
#. TBD

Quality Work
Expand Down