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

custom_map example does not work #5

Closed
FilipeMaia opened this issue May 10, 2016 · 0 comments
Closed

custom_map example does not work #5

FilipeMaia opened this issue May 10, 2016 · 0 comments

Comments

@FilipeMaia
Copy link
Collaborator

When I try the example condor/examples/scripts/custom_map/example.py I get:

$ python example.py
Simulating map
WARNING:    File ./condor.cxi exists and is being overwritten
Traceback (most recent call last):
  File "example.py", line 39, in <module>
    res = E.propagate()
  File "/Library/Python/2.7/site-packages/condor/utils/log.py", line 60, in st_func
    r = func(*args, **keyArgs)
  File "/Library/Python/2.7/site-packages/condor/experiment.py", line 168, in propagate
    D_particles = self._get_next_particles()
  File "/Library/Python/2.7/site-packages/condor/experiment.py", line 152, in _get_next_particles
    D_particles["particle_%02i" % i] = p.get_next()
  File "/Library/Python/2.7/site-packages/condor/particle/particle_map.py", line 204, in get_next
    O = AbstractContinuousParticle.get_next(self)
  File "/Library/Python/2.7/site-packages/condor/particle/particle_abstract.py", line 266, in get_next
    O = AbstractParticle.get_next(self)
  File "/Library/Python/2.7/site-packages/condor/particle/particle_abstract.py", line 97, in get_next
    O["extrinsic_quaternion"] = self._get_next_extrinsic_rotation().get_as_quaternion()
  File "/Library/Python/2.7/site-packages/condor/particle/particle_abstract.py", line 152, in _get_next_extrinsic_rotation
    rotation = self._rotations.get_next_rotation()
  File "/Library/Python/2.7/site-packages/condor/utils/rotation.py", line 340, in get_next_rotation
    self._rotations[0]._set_as_random_formalism(self._formalism)
  File "/Library/Python/2.7/site-packages/condor/utils/rotation.py", line 146, in _set_as_random_formalism
    self.set_as_random()
  File "/Library/Python/2.7/site-packages/condor/utils/rotation.py", line 158, in set_as_random
    q = rand_quat()

Looks like rand_quat() is not defined anywhere.

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