You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As distributed with v3.6, the bao_angular likelihood seems not to work, for two independent problems:
First, in the __init__.py file, the function is called bao_boss instead of bao_angular.
Second, in the data file bao_angular.txt, the first column is supposed to represent the catalog the data comes from. When the likelihood function is reading the data, in a string like SDSS DR7 0.235 9.06 0.23 8, the first word is taken as SDSS, and the the string DR7 is attempted to save as the redshift. It can be solved by rewriting SDSS-DR7.
The text was updated successfully, but these errors were encountered:
Thank you for the bug report and for including a solution. I'm surprised the first was never noticed, as that means it would have never run, oops! The second issue seems to be down to how the likelihood splits the data when reading it. Your solution would work, but I'm thinking instead to edit line 27 of __init__.py to split on tabs instead of leaving it undeclared (I wonder if default behavior changed with some python version?), i.e. instead of this_line = line.split()
I'll change it to
line = line.strip('\n')
this_line = line.split(sep='\t')
That seems to work (stripping the next line also seemed to be missing, which I expect should be there). This solution leaves the data file unchanged, preserving the time stamp of when it was last edited, which I think is beneficial.
As distributed with v3.6, the bao_angular likelihood seems not to work, for two independent problems:
__init__.py
file, the function is calledbao_boss
instead ofbao_angular
.bao_angular.txt
, the first column is supposed to represent the catalog the data comes from. When the likelihood function is reading the data, in a string likeSDSS DR7 0.235 9.06 0.23 8
, the first word is taken asSDSS
, and the the stringDR7
is attempted to save as the redshift. It can be solved by rewritingSDSS-DR7
.The text was updated successfully, but these errors were encountered: