Skip to content

Conversation

@gregfi
Copy link

@gregfi gregfi commented Sep 23, 2023

This change creates an alternative to the BOXR output file in COVR using currently-undefined values of the matype parameter. Modifying test #65 as:

covr
 41 51 0 /
 1 /
 u235 /
 /
9228 0 0 0 /
stop

The resulting output file (tape51) can be read with conventional Python as:

import numpy as np
import re
from io import StringIO

# read data from file
fileData=open('tape51').read()

# split into substrings based on "#"
splitData=list(filter(None, re.split('^#.*$', fileData, re.DOTALL, re.MULTILINE)))

# load into numpy arrays
erg, xs, stdev, covr = [np.loadtxt(StringIO(chunk)) for chunk in splitData]

When processing IRDFF covariance matrices into multigroup formats, as a result of the increased precision, the negative eigenvalues I get from the re-binning process drop by roughly 3 orders of magnitude.

@whaeck whaeck requested a review from nathangibson14 October 26, 2023 17:56
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.

1 participant