Test Brille fix #862
GitHub Actions / Test Results
failed
Jul 16, 2024 in 0s
1 fail, 6 skipped, 1 043 pass in 32m 0s
Annotations
Check warning on line 0 in euphonic_test.test_structure_factor.TestStructureFactorCalculateSqwMap
github-actions / Test Results
3 out of 10 runs failed: test_calculate_sqw_map_with_0_inv_cm_bin_doesnt_emit_runtime_warn (euphonic_test.test_structure_factor.TestStructureFactorCalculateSqwMap)
artifacts/Unit test results macos-latest/junit_report_1721121536.xml [took 0s]
artifacts/Unit test results ubuntu-latest/junit_report_1721121504.xml [took 0s]
artifacts/Unit test results windows-latest/junit_report_1721121689.xml [took 0s]
Raw output
assert 8 == 0
+ where 8 = len([<warnings.WarningMessage object at 0x1254cbd90>, <warnings.WarningMessage object at 0x117888c50>, <warnings.WarningMe...at 0x1174b33d0>, <warnings.WarningMessage object at 0x1174b3f90>, <warnings.WarningMessage object at 0x1177e2ed0>, ...])
self = <tests_and_analysis.test.euphonic_test.test_structure_factor.TestStructureFactorCalculateSqwMap object at 0x11652be50>
def test_calculate_sqw_map_with_0_inv_cm_bin_doesnt_emit_runtime_warn(self):
sf = get_sf('CaHgO2', 'CaHgO2_300K_fc_structure_factor.json')
ebins = np.array([0, 50, 100, 150, 200, 250, 300])*ureg('1/cm')
with warnings.catch_warnings(record=True) as warn_record:
sqw = sf.calculate_sqw_map(ebins)
> assert len(warn_record) == 0
E assert 8 == 0
E + where 8 = len([<warnings.WarningMessage object at 0x1254cbd90>, <warnings.WarningMessage object at 0x117888c50>, <warnings.WarningMe...at 0x1174b33d0>, <warnings.WarningMessage object at 0x1174b3f90>, <warnings.WarningMessage object at 0x1177e2ed0>, ...])
euphonic_test/test_structure_factor.py:425: AssertionError
Loading