Made default scatt moment order an empty string in statepoint

This commit is contained in:
Will Boyd 2015-02-11 08:44:43 -05:00
parent 6933672af2
commit 63f117ca7f
2 changed files with 8 additions and 8 deletions

View file

@ -262,7 +262,7 @@ contains
end do
end do
case default
moment_name = '0'
moment_name = ''
call sp % write_data(moment_name, "order", &
group="tallies/tally" // trim(to_str(i)) // &
"/moments/" // trim(to_str(k)))

View file

@ -302,15 +302,15 @@ class StatePoint(object):
# Extract the moment order string for each score
for k in range(t.n_scores):
moment = self._get_string(8, path=base+'{0}/order'.format(k+1))
moment = moment.lstrip('[\'')
moment = moment.rstrip('\']')
moment = self._get_string(8, path=base+'{0}/order'.format(k+1))
moment = moment.lstrip('[\'')
moment = moment.rstrip('\']')
# Remove extra whitespace
moment.replace(" ", "")
# Remove extra whitespace
moment.replace(" ", "")
# Add the moment to the tally's list
t.moments.append(moment)
# Add the moment to the tally's list
t.moments.append(moment)
# Set up stride
stride = 1