@@ -1256,15 +1256,7 @@ def test_eegieeg(dir_name, fname, reader, _bids_validate, tmp_path):
1256
1256
'Converting to float32.' ):
1257
1257
bids_output_path = write_raw_bids (** kwargs )
1258
1258
elif dir_name == 'EGI' :
1259
- if check_version ("mne" , "1.1" ):
1260
- bids_output_path = write_raw_bids (** kwargs )
1261
- else :
1262
- with pytest .warns (
1263
- RuntimeWarning ,
1264
- match = r'Encountered data in "float" format. '
1265
- r'Converting to float32.'
1266
- ):
1267
- bids_output_path = write_raw_bids (** kwargs )
1259
+ bids_output_path = write_raw_bids (** kwargs )
1268
1260
else :
1269
1261
with pytest .warns (RuntimeWarning ,
1270
1262
match = 'Encountered data in "double" format' ):
@@ -1312,15 +1304,7 @@ def test_eegieeg(dir_name, fname, reader, _bids_validate, tmp_path):
1312
1304
'Converting to float32.' ):
1313
1305
write_raw_bids (** kwargs )
1314
1306
elif dir_name == 'EGI' :
1315
- if check_version ("mne" , "1.1" ):
1316
- write_raw_bids (** kwargs )
1317
- else :
1318
- with pytest .warns (
1319
- RuntimeWarning ,
1320
- match = r'Encountered data in "float" format. '
1321
- r'Converting to float32.'
1322
- ):
1323
- write_raw_bids (** kwargs )
1307
+ write_raw_bids (** kwargs )
1324
1308
else :
1325
1309
with pytest .warns (RuntimeWarning ,
1326
1310
match = 'Encountered data in "double" format' ):
@@ -1356,15 +1340,7 @@ def test_eegieeg(dir_name, fname, reader, _bids_validate, tmp_path):
1356
1340
'Converting to float32.' ):
1357
1341
write_raw_bids (** kwargs )
1358
1342
elif dir_name == 'EGI' :
1359
- if check_version ("mne" , "1.1" ):
1360
- write_raw_bids (** kwargs )
1361
- else :
1362
- with pytest .warns (
1363
- RuntimeWarning ,
1364
- match = r'Encountered data in "float" format. '
1365
- r'Converting to float32.'
1366
- ):
1367
- write_raw_bids (** kwargs )
1343
+ write_raw_bids (** kwargs )
1368
1344
else :
1369
1345
with pytest .warns (RuntimeWarning ,
1370
1346
match = 'Encountered data in "double" format' ):
@@ -1437,15 +1413,7 @@ def test_eegieeg(dir_name, fname, reader, _bids_validate, tmp_path):
1437
1413
'Converting to float32.' ):
1438
1414
write_raw_bids (** kwargs )
1439
1415
elif dir_name == 'EGI' :
1440
- if check_version ("mne" , "1.1" ):
1441
- write_raw_bids (** kwargs )
1442
- else :
1443
- with pytest .warns (
1444
- RuntimeWarning ,
1445
- match = r'Encountered data in "float" format. '
1446
- r'Converting to float32.'
1447
- ):
1448
- write_raw_bids (** kwargs )
1416
+ write_raw_bids (** kwargs )
1449
1417
else :
1450
1418
with pytest .warns (RuntimeWarning ,
1451
1419
match = 'Encountered data in "double" format' ):
@@ -1503,15 +1471,7 @@ def test_eegieeg(dir_name, fname, reader, _bids_validate, tmp_path):
1503
1471
'Converting to float32.' ):
1504
1472
write_raw_bids (** kwargs )
1505
1473
elif dir_name == 'EGI' :
1506
- if check_version ("mne" , "1.1" ):
1507
- write_raw_bids (** kwargs )
1508
- else :
1509
- with pytest .warns (
1510
- RuntimeWarning ,
1511
- match = r'Encountered data in "float" format. '
1512
- r'Converting to float32.'
1513
- ):
1514
- write_raw_bids (** kwargs )
1474
+ write_raw_bids (** kwargs )
1515
1475
else :
1516
1476
with pytest .warns (RuntimeWarning ,
1517
1477
match = 'Encountered data in "short" format' ):
@@ -1555,15 +1515,7 @@ def test_eegieeg(dir_name, fname, reader, _bids_validate, tmp_path):
1555
1515
'Converting to float32.' ):
1556
1516
write_raw_bids (** kwargs )
1557
1517
elif dir_name == 'EGI' :
1558
- if check_version ("mne" , "1.1" ):
1559
- write_raw_bids (** kwargs )
1560
- else :
1561
- with pytest .warns (
1562
- RuntimeWarning ,
1563
- match = r'Encountered data in "float" format. '
1564
- r'Converting to float32.'
1565
- ):
1566
- write_raw_bids (** kwargs )
1518
+ write_raw_bids (** kwargs )
1567
1519
else :
1568
1520
with pytest .warns (RuntimeWarning ,
1569
1521
match = 'Encountered data in "double" format' ):
@@ -1612,15 +1564,7 @@ def test_eegieeg(dir_name, fname, reader, _bids_validate, tmp_path):
1612
1564
'Converting to float32.' ):
1613
1565
write_raw_bids (** kwargs )
1614
1566
elif dir_name == 'EGI' :
1615
- if check_version ("mne" , "1.1" ):
1616
- write_raw_bids (** kwargs )
1617
- else :
1618
- with pytest .warns (
1619
- RuntimeWarning ,
1620
- match = r'Encountered data in "float" format. '
1621
- r'Converting to float32.'
1622
- ):
1623
- write_raw_bids (** kwargs )
1567
+ write_raw_bids (** kwargs )
1624
1568
else :
1625
1569
with pytest .warns (RuntimeWarning ,
1626
1570
match = 'Encountered data in "double" format' ):
@@ -1680,15 +1624,7 @@ def test_eegieeg(dir_name, fname, reader, _bids_validate, tmp_path):
1680
1624
'Converting to float32.' ):
1681
1625
write_raw_bids (** kwargs )
1682
1626
elif dir_name == 'EGI' :
1683
- if check_version ("mne" , "1.1" ):
1684
- write_raw_bids (** kwargs )
1685
- else :
1686
- with pytest .warns (
1687
- RuntimeWarning ,
1688
- match = r'Encountered data in "float" format. '
1689
- r'Converting to float32.'
1690
- ):
1691
- write_raw_bids (** kwargs )
1627
+ write_raw_bids (** kwargs )
1692
1628
else :
1693
1629
with pytest .warns (RuntimeWarning ,
1694
1630
match = 'Encountered data in "double" format' ):
@@ -1748,19 +1684,8 @@ def test_eegieeg(dir_name, fname, reader, _bids_validate, tmp_path):
1748
1684
write_raw_bids (** kwargs )
1749
1685
output_path = _test_anonymize (tmp_path / 'c' , raw , bids_path )
1750
1686
elif dir_name == 'EGI' :
1751
- if check_version ("mne" , "1.1" ):
1752
- write_raw_bids (** kwargs )
1753
- output_path = _test_anonymize (tmp_path / 'd' , raw , bids_path )
1754
- else :
1755
- with pytest .warns (
1756
- RuntimeWarning ,
1757
- match = r'Encountered data in "float" format. '
1758
- r'Converting to float32.'
1759
- ):
1760
- write_raw_bids (** kwargs )
1761
- output_path = _test_anonymize (
1762
- tmp_path / 'd' , raw , bids_path
1763
- )
1687
+ write_raw_bids (** kwargs )
1688
+ output_path = _test_anonymize (tmp_path / 'd' , raw , bids_path )
1764
1689
elif dir_name == 'curry' :
1765
1690
with pytest .warns (RuntimeWarning ,
1766
1691
match = 'Encountered data in "int" format. '
0 commit comments