OscarES / serpentinetracker

Automatically exported from code.google.com/p/serpentinetracker
GNU General Public License v3.0
0 stars 0 forks source link

Unable to run standard ATF2 example unit test. #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd examples/atf
2. python atf2example.py

Traceback (most recent call last):
  File "atf2example.py", line 80, in <module>
    fullATF2 = Serpentine(line='newATF2lat.aml',twiss=mytwiss)
  File "/Users/stephenmolloy/serpentinetracker/serpentine.py", line 44, in __init__
    self.beamline, parttype = LL.loadlatfile(line, P=P)
TypeError: loadlatfile() got an unexpected keyword argument 'P'

This issue is understood (by me), and is being worked on.

Original issue reported on code.google.com by sdmol...@gmail.com on 1 May 2011 at 4:15

GoogleCodeExporter commented 9 years ago
has the variable not been changed to ini_mom in loadlatfile? 

Original comment by stewart....@gmail.com on 1 May 2011 at 4:31

GoogleCodeExporter commented 9 years ago
Man.  It's *way* more complex than I thought. :(  I think I'm gonna roll back a 
lot of files to before I started "cleaning them up".  Shit.

Original comment by sdmol...@gmail.com on 1 May 2011 at 8:34

GoogleCodeExporter commented 9 years ago
Fixed.  Found a load of bugs I'd introduced, including one stinker that caused 
a drift to be added after every single element :S
I didn't roll back any changes in the end.
Confirm my fixes worked?

Original comment by sdmol...@gmail.com on 1 May 2011 at 10:10

GoogleCodeExporter commented 9 years ago
Works on my mac build! 

Original comment by stewart....@gmail.com on 1 May 2011 at 10:16

GoogleCodeExporter commented 9 years ago
:)
Back to where I was 4 weeks ago!  :)

Original comment by sdmol...@gmail.com on 1 May 2011 at 10:23