Skip to content

Commit d93eada

Browse files
committed
Added xline test in t005
1 parent 605a21a commit d93eada

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python_examples/hl_lhc_collisions_python/checks_and_doc/t005_check_crabs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@
4646
path_test = '../'
4747
type_test = 'sixtrack'
4848

49+
path_test = '../xline/line_bb_dipole_not_cancelled.json'
50+
type_test = 'xline'
51+
4952
def prepare_line(path, input_type):
5053

5154
if input_type == 'xline':
5255
# Load xline machine
53-
with open(path, "rb") as fid:
54-
ltest = xline.Line.from_dict(pickle.load(fid))
56+
ltest = xline.Line.from_json(path)
5557
elif input_type == 'sixtrack':
5658
print('Build xline from sixtrack input:')
5759
sixinput_test = sixtracktools.sixinput.SixInput(path)

0 commit comments

Comments
 (0)