pyerrors/pyerrors/input
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
..
__init__.py [Fix] Ruff rules and more precise Excpetion types (#248) 2024-12-24 15:35:59 +01:00
bdio.py better docstrings (#144) 2023-01-16 14:57:22 +00:00
dobs.py [Fix] Removed the possibility to create an Obs from data on several replica (#258) 2025-02-25 16:58:44 +01:00
hadrons.py [Fix] Ruff rules and more precise Excpetion types (#248) 2024-12-24 15:35:59 +01:00
json.py [Fix] removed unnecessary lines that raised the flake8 error code F824 (#262) 2025-04-22 10:19:14 +02:00
misc.py Feat/flow (#176) 2023-05-16 18:29:13 +01:00
openQCD.py [Fix] Ruff rules and more precise Excpetion types (#248) 2024-12-24 15:35:59 +01:00
pandas.py [Fix] Pandas 3 string type changes (#278) 2026-03-29 18:46:15 +02:00
sfcf.py Fix/check append rep (#277) 2025-11-25 12:57:03 +01:00
utils.py Feat/read sfcf multi (#210) 2023-10-20 19:22:55 +02:00