Skip to content

Conversation

@DanielYang59
Copy link
Contributor

@DanielYang59 DanielYang59 commented Dec 9, 2025

numba now support python 3.14: numba/numba#9957 (comment)

@DanielYang59 DanielYang59 marked this pull request as ready for review December 9, 2025 15:44
@DanielYang59 DanielYang59 marked this pull request as draft December 10, 2025 09:59
@DanielYang59
Copy link
Contributor Author

This error happened in https://github.com/materialsproject/pymatgen/actions/runs/20098743541/job/57663729472?pr=4565 as well (which didn't touch numba), so guess it's not related:

self = <analysis.test_phase_diagram.TestPhaseDiagram object at 0x7fd2d0d11850>

    def test_as_from_dict(self):
        # test round-trip for other entry types such as ComputedEntry
        entry = ComputedEntry("H", 0.0, 0.0, entry_id="test")
        pd = PhaseDiagram([entry])
        pd_dict = pd.as_dict()
        pd_roundtrip = PhaseDiagram.from_dict(pd_dict)
        assert pd.all_entries[0].entry_id == pd_roundtrip.all_entries[0].entry_id
        dd = self.pd.as_dict()
        new_pd = PhaseDiagram.from_dict(dd)
        new_pd_dict = new_pd.as_dict()
        assert len(new_pd_dict) == len(dd)
        for k, v in new_pd_dict.items():
>           assert v == dd[k]
E           AssertionError: assert {'all_entries...2), ...], ...} == {'all_entries...2), ...], ...}
E             
E             (pytest_assertion plugin: representation of details failed: /home/runner/micromamba/envs/pmg/lib/python3.14/site-packages/_pytest/assertion/util.py:508: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all().
E              Probably an object has a faulty __repr__.)

@DanielYang59 DanielYang59 marked this pull request as ready for review December 10, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant