We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605a21a commit d93eadaCopy full SHA for d93eada
python_examples/hl_lhc_collisions_python/checks_and_doc/t005_check_crabs.py
@@ -46,12 +46,14 @@
46
path_test = '../'
47
type_test = 'sixtrack'
48
49
+path_test = '../xline/line_bb_dipole_not_cancelled.json'
50
+type_test = 'xline'
51
+
52
def prepare_line(path, input_type):
53
54
if input_type == 'xline':
55
# Load xline machine
- with open(path, "rb") as fid:
- ltest = xline.Line.from_dict(pickle.load(fid))
56
+ ltest = xline.Line.from_json(path)
57
elif input_type == 'sixtrack':
58
print('Build xline from sixtrack input:')
59
sixinput_test = sixtracktools.sixinput.SixInput(path)
0 commit comments