pyerrors/tests
Fabian Joswig 682d23604d
[Fix] Pandas 3 string type changes (#278)
* [Fix] Pandas 3 string type handling

* [ci] Temporarily remove WError because of scipy deprecation

* [Fix] Address edge cases in _deserialize_df

- Use pd.isna() instead of truthiness check for gzip null guard, fixing
  incorrect behavior when null is np.nan (which is truthy in Python)
- Add bounds check to while loop to prevent IndexError when all non-null
  values are empty strings converted to None by regex replace

* [Fix] Address edge cases in _deserialize_df and add string dtype tests

- Guard against IndexError on empty DataFrames and all-null columns
- Use is not None instead of pd.isna() for Obs objects in auto_gamma
- Add tests for string dtype columns (with/without None, CSV and SQL)
- Add test for empty DataFrame deserialization

* [Fix] Avoid skipping NA-to-None conversion and guard auto_gamma against None lists

- Replace continue with conditional to preserve NA-to-None conversion for all-null columns
- Guard auto_gamma list lambda against None values to prevent TypeError
- Add tests for all-empty-string columns and Obs lists with None + auto_gamma
2026-03-29 18:46:15 +02:00
..
data Fix/check append rep (#277) 2025-11-25 12:57:03 +01:00
benchmark_test.py tests: tests cleaned up, name duplicate in obs_test corrected 2022-02-09 11:23:58 +00:00
correlators_test.py pyerrors/correlators.py: Allowing for None values in pe.Corr.prune (#272) 2025-10-19 12:28:36 +02:00
covobs_test.py feat: computation of _covariance_element optimized, visualize option 2022-03-01 15:34:53 +00:00
dirac_test.py [Fix] Ruff rules and more precise Excpetion types (#248) 2024-12-24 15:35:59 +01:00
fits_test.py [Fix] corrected expected_chisquare by adding the number of priors (#274) 2025-10-22 15:36:01 +02:00
integrate_test.py feat: Added numerical integration of generic functions (#201) 2023-07-14 14:21:59 +01:00
json_io_test.py [Fix] Removed the possibility to create an Obs from data on several replica (#258) 2025-02-25 16:58:44 +01:00
linalg_test.py [Fix] Removed the possibility to create an Obs from data on several replica (#258) 2025-02-25 16:58:44 +01:00
misc_test.py tests: test for print_config added. 2023-07-10 15:44:06 +01:00
mpm_test.py test: mpm and corr dump test extended 2021-12-23 14:56:49 +01:00
obs_test.py [CI] Ignore sinc test failure 2025-10-10 17:31:14 +02:00
openQCD_in_test.py Feat/files idl xsf (#185) 2023-05-26 13:01:52 +01:00
pandas_test.py [Fix] Pandas 3 string type changes (#278) 2026-03-29 18:46:15 +02:00
roots_test.py test: test for multi parameter foot feature added. 2023-01-10 10:27:56 +00:00
sfcf_in_test.py Fix/check append rep (#277) 2025-11-25 12:57:03 +01:00
special_test.py Special function module (#221) 2024-01-07 17:22:05 +01:00
utils_in_test.py Fix/sort names (#177) 2023-05-16 18:28:32 +01:00