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

AttributeError: 'PSExact' object has no attribute 'bands' #51

Open
zuoshifan opened this issue Mar 23, 2014 · 0 comments
Open

AttributeError: 'PSExact' object has no attribute 'bands' #51

zuoshifan opened this issue Mar 23, 2014 · 0 comments

Comments

@zuoshifan
Copy link
Contributor

Error in psestimation.py line 638, see the traceback below.
Also the same error in psmc.py line 126. (AttributeError: 'PSMonteCarloAlt' object has no attribute 'bands')


Traceback (most recent call last):
File "/home/zuoshifan/.local/bin/drift-makeproducts", line 7, in
execfile(file)
File "/home/zuoshifan/programming/python/21cmcosmology/driftscan/scripts/drift-makeproducts", line 115, in
args.func(args)
File "/home/zuoshifan/programming/python/21cmcosmology/driftscan/scripts/drift-makeproducts", line 13, in run_config
m.generate()
File "/home/zuoshifan/programming/python/21cmcosmology/driftscan/drift/core/manager.py", line 264, in generate
psobj.generate()
File "/home/zuoshifan/programming/python/21cmcosmology/driftscan/drift/core/psestimation.py", line 465, in generate
fisher_bias = mpiutil.parallel_map(self.fisher_bias_m, range(self.telescope.mmax + 1))
File "/home/zuoshifan/programming/python/21cmcosmology/driftscan/drift/util/mpiutil.py", line 92, in parallel_map
return [func(item) for item in glist]
File "/home/zuoshifan/programming/python/21cmcosmology/driftscan/drift/core/psestimation.py", line 405, in fisher_bias_m
fisher, bias = self._work_fisher_bias_m(mi)
File "/home/zuoshifan/programming/python/21cmcosmology/driftscan/drift/core/psestimation.py", line 779, in _work_fisher_bias_m
c_a = self.getproj(mi, ia)
File "/home/zuoshifan/programming/python/21cmcosmology/driftscan/drift/core/psestimation.py", line 733, in getproj
fn = self._cfile % (mi, bi)
File "/home/zuoshifan/programming/python/21cmcosmology/driftscan/drift/core/psestimation.py", line 638, in cfile
return self.psdir + "/ps_c_m
" + util.intpattern(self.telescope.mmax) + "b" + util.natpattern(len(self.bands)-1) + ".hdf5"
AttributeError: 'PSExact' object has no attribute 'bands'

zuoshifan added a commit to zuoshifan/driftscan that referenced this issue Apr 3, 2014
zuoshifan added a commit to zuoshifan/driftscan that referenced this issue Apr 8, 2014
zuoshifan added a commit to zuoshifan/driftscan that referenced this issue Apr 13, 2014
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

No branches or pull requests

1 participant