Error reading dose coefficients

Hi, I am trying to apply the dose_coefficients to a tally filter to get dose values. While reading other topics I came around with the line:
““energy, dose =‘photon’, ‘AP’)””
Although, when I try to run this I get the following error: ‘ascii’ codec can’t decode byte 0xc2 in position 57: ordinal not in range(128)
Probably could be that there are characters in the document that can’t be read. Any ideas to solve this? Thanks in advance.


I could solve this editing the file in /openmc/data/effective_dose , the problem was in the default encoding used to decode the file in the loadtxt function of numpy. So simply especifying the encoding as ‘utf-8’:
data = np.loadtxt(path, skiprows=3, encoding=‘utf-8’)
the error is solved.

Thanks for reporting this @Fabri. I’ve just submitted a pull request to fix this issue and it should land in our next release.