radiasoft / jupyter.radiasoft.org

RadiaSoft public Jupyter Server announcements and global configuration
https://jupyter.radiasoft.org
Apache License 2.0
4 stars 0 forks source link

Read_bunch, No attribute 'get_rank' #22

Closed jseldred closed 6 years ago

jseldred commented 6 years ago

I was running my Synergia simulation on the Radiasfoft Juptyerhub environment for the first time since IPAC and I ran into a new error on previously functioning code.

Here's what it spits out when I use 'mpiexec -n 1 synergia IRCS_SC_WB.py' :

  File "IRCS_SC_WB.py", line 551, in <module>
    myBunch = read_bunch.read_bunch(particles_file, reference_particle, opts.real_particles, bucket_length, comm)
  File "build/bdist.linux-x86_64/egg/rssynergia/base_diagnostics/read_bunch.py", line 42, in read_bunch
  File "build/bdist.linux-x86_64/egg/rssynergia/base_diagnostics/read_bunch.py", line 187, in read_h5_particles
AttributeError: 'float' object has no attribute 'get_rank'

Is there anything that would have changed about the Synergia simulation environment or is there any known remedy to this?

robnagler commented 6 years ago

It looks like the comma and bucket_length arguments to read_bunch were switched in https://github.com/radiasoft/rssynergia/commit/d872c0f39648814c27d61b9ec8394db1e199fa1b#diff-ea1123be4d08869574eab7b822367eac.

bruhwiler commented 6 years ago

@jseldred -- sorry for the unexpected change in the API. We'll try to prevent such surprises in the future.

Please let us know if you are operational again.

jseldred commented 6 years ago

No problem, everything looks operational now.

Thank you for the rapid response!