Project

General

Profile

Bug #9015

There is no python wrapping for Lattice::get_element_adaptor_map()

Added by Eric Stern over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
06/02/2015
Due date:
% Done:

100%

Estimated time:
Duration:

Description

egstern@goldfinch:~/fnal/foborodobo32$ synergia -i
Python 2.7.3 (default, Dec 18 2014, 19:10:20)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import synergia
lattice = synergia.lattice.Lattice("foo")
mam = lattice.get_element_adaptor_map()

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Lattice' object has no attribute 'get_element_adaptor_map'

dir(lattice)

['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__instance_size__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'append', 'as_string', 'get_elements', 'get_length', 'get_name', 'get_reference_particle', 'get_total_angle', 'has_reference_particle', 'print_', 'set_all_double_attribute', 'set_all_string_attribute', 'set_reference_particle']

History

#1 Updated by Eric Stern over 4 years ago

  • Subject changed from There is now python wrapping for Lattice::get_element_adaptor_map() to There is no python wrapping for Lattice::get_element_adaptor_map()

#2 Updated by James Amundson over 4 years ago

  • Status changed from New to Resolved

I added get_element_adaptor_map_sptr, which is what one really wants for Python, then wrapped that.

#3 Updated by Eric Stern about 4 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100


Also available in: Atom PDF