Example #1
0
 def test_write_empty_multidataset(self, tmp_path):
     writers.write_empty_dataset(
         tmp_path,
         self.circuit_list,
         header_string=
         '## Columns = ds1 0 count, ds1 1 count, ds2 0 count, ds2 1 count')
Example #2
0
 def test_write_empty_dataset_raises_on_need_header(self, tmp_path):
     with self.assertRaises(ValueError):
         writers.write_empty_dataset(tmp_path,
                                     self.circuit_list,
                                     header_string="# Nothing ")
Example #3
0
 def test_write_empty_dataset(self, tmp_path):
     writers.write_empty_dataset(tmp_path,
                                 self.circuit_list,
                                 num_zero_cols=2,
                                 append_weights_column=False)
Example #4
0
 def test_write_empty_dataset_raises_on_bad_type(self, tmp_path):
     with self.assertRaises(ValueError):
         writers.write_empty_dataset(tmp_path, [('Gx', )], num_zero_cols=2)
Example #5
0
 def test_write_empty_dataset(self, tmp_path):
     writers.write_empty_dataset(tmp_path,
                                 self.circuit_list,
                                 numZeroCols=2,
                                 appendWeightsColumn=False)