File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -68,17 +68,16 @@ def test_new_output():
68
68
path1 = _new_output ()
69
69
path1 .mkdir ()
70
70
path2 = _new_output ()
71
-
72
- assert str (path1 ).split ("-" )[- 2 ] == "000"
73
- assert str (path2 ).split ("-" )[- 2 ] == "001"
71
+ assert str (path1 ).split ("/" )[- 1 ].split ("-" )[3 ] == "000"
72
+ assert str (path2 ).split ("/" )[- 1 ].split ("-" )[3 ] == "001"
74
73
75
74
76
75
def test_output_mkdir ():
77
76
path1 = Output .mkdir ()
78
77
path2 = Output .mkdir ()
79
78
80
- assert str (path1 ).split ("- " )[- 2 ] == "000"
81
- assert str (path2 ).split ("- " )[- 2 ] == "001"
79
+ assert str (path1 ).split ("/ " )[- 1 ]. split ( "-" )[ 3 ] == "000"
80
+ assert str (path2 ).split ("/ " )[- 1 ]. split ( "-" )[ 3 ] == "001"
82
81
83
82
with pytest .raises (RuntimeError ):
84
83
Output .mkdir (path1 )
Original file line number Diff line number Diff line change 3
3
import numpy as np
4
4
import pytest
5
5
6
+ from qibocal .protocols .randomized_benchmarking import fitting
6
7
from qibocal .protocols .randomized_benchmarking .dict_utils import load_inverse_cliffords
7
8
from qibocal .protocols .randomized_benchmarking .utils import (
8
9
RB_Generator ,
You can’t perform that action at this time.
0 commit comments