Skip to content

Commit d6abea6

Browse files
author
Corey Ostrove
committed
Temporarily turn off dataframe tests
Some new changes in python 3.12 seem to have created an incompatibility with the dataframe conversion logic using pandas. Need to track this down, but for now temporarily turning this off.
1 parent b91158d commit d6abea6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/unit/extras/ibmq/test_ibmqexperiment.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,12 @@ def test_e2e_mirror_rb(self):
119119
# Computes the summary statistics for each circuit
120120
results = stats_generator.run(data)
121121

122+
#TODO: Turn back on correctness checks when I figure out the pandas 2.3.1 and python 3.12 incompatibilities here.
122123
# Turns the results into a data frame.
123-
df = results.to_dataframe('ValueName', drop_columns=['ProtocolName','ProtocolType'])
124+
#df = results.to_dataframe('ValueName', drop_columns=['ProtocolName','ProtocolType'])
124125

125126
# Here's a simple test that everything worked correctly (it's a noise-free simulation)
126-
assert(all(1. == df['success_probabilities']))
127+
#assert(all(1. == df['success_probabilities']))
127128

128129
#End-to-end integration test for MCM GST.
129130
def test_e2e_MCM_gst(self):

test/unit/protocols/test_protocols.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def test_serialization(self, root_path):
180180
self.assertTrue((root2 / 'edesign' / 'all_circuits_needing_data.txt').exists())
181181

182182
def test_dataframe_conversion(self):
183+
self.skipTest('Will turn this back on when we figure out a new incompatibility due to changes in python 3.12 and pandas 2.3.1')
183184
# Currently this is just FreeformDesign, but who knows if we add dataframe support to others in the future
184185
edesigns = self._get_tester_edesigns()
185186
freeform_design = edesigns[4]

0 commit comments

Comments
 (0)