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: 'Dwarf' object has no attribute 'write_jmap_wcs' #2

Open
NAH8 opened this issue Oct 24, 2017 · 1 comment
Open

AttributeError: 'Dwarf' object has no attribute 'write_jmap_wcs' #2

NAH8 opened this issue Oct 24, 2017 · 1 comment

Comments

@NAH8
Copy link

NAH8 commented Oct 24, 2017

I was testing the wcs_template_example.ipynb and I got this error when I ran the fourth part:

"image,pix,wcs = draco.create_jmap(npix=150,subsample=8,coordsys='CEL',projection='AIT')"


AttributeError Traceback (most recent call last)
in ()
2
3 # Create a template image and associate wcs
----> 4 image,pix,wcs = draco.create_jmap(npix=150,subsample=8,coordsys='CEL',projection='AIT')
5 # The image is in the default units [cgs]
6 #image = Units.convert_to(image,'GeV2 / cm5')

/u/gl/nah/.local/lib/python2.7/site-packages/pymodeler/model.pyc in getattr(self, name)
148 else:
149 # Raises AttributeError
--> 150 return object.getattribute(self,name)
151
152 def setattr(self, name, value):

AttributeError: 'Dwarf' object has no attribute 'create_jmap'

@NAH8
Copy link
Author

NAH8 commented Oct 24, 2017

I started with trying to run dmpipe-prepare-targets and I think the errors are related:
$ dmpipe-prepare-targets --roster dsphs_gc --baseconfig config.yaml --topdir TOPDIR5
/afs/slac.stanford.edu/u/gl/nah/.local/lib/python2.7/site-packages/dmsky/data/targets
/afs/slac.stanford.edu/u/gl/nah/.local/lib/python2.7/site-packages/dmsky/data/rosters
Writing bootes_I:default
Traceback (most recent call last):
File "/u/gl/nah/.local/bin/dmpipe-prepare-targets", line 11, in
load_entry_point('dmpipe==0.0.1+12.g041aca0.dirty', 'console_scripts', 'dmpipe-prepare-targets')()
File "build/bdist.linux-x86_64/egg/dmpipe/target_analysis.py", line 413, in main_prepare_targets
File "build/bdist.linux-x86_64/egg/dmpipe/target_analysis.py", line 120, in run_analysis
File "build/bdist.linux-x86_64/egg/dmpipe/target_analysis.py", line 99, in write_target_dirs
File "/afs/slac.stanford.edu/u/gl/nah/.local/lib/python2.7/site-packages/pymodeler/model.py", line 150, in getattr
return object.getattribute(self,name)
AttributeError: 'Dwarf' object has no attribute 'write_jmap_wcs'

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