Skip to content

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

Description

@NAH8

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'

Activity

  1. NAH8 commented on Oct 24, 2017

    @NAH8
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions