Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

td1dtagged - sporadic test failure #877

Open
PhilipDeegan opened this issue Aug 7, 2024 · 3 comments · Fixed by #889
Open

td1dtagged - sporadic test failure #877

PhilipDeegan opened this issue Aug 7, 2024 · 3 comments · Fixed by #889
Labels
bug 🔥 Something isn't working diagnostics outputs
Milestone

Comments

@PhilipDeegan
Copy link
Member

PhilipDeegan commented Aug 7, 2024

BwT = rwT.GetB(plot_time, merged=True, interp="linear")

if it was line 151 I would understand, but this seems odd.
I've seen it at least once before, but is not always happening.

16:11:29   Traceback (most recent call last):
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/build/tests/functional/tdtagged/td1dtagged.py", line 282, in <module>
16:11:29       main()
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/build/tests/functional/tdtagged/td1dtagged.py", line 278, in main
16:11:29       make_figure()
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/build/tests/functional/tdtagged/td1dtagged.py", line 152, in make_figure
16:11:29       BwT = rwT.GetB(plot_time, merged=True, interp="linear")
16:11:29             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/pharesee/run/run.py", line 99, in GetB
16:11:29       return self._get(hier, time, merged, interp)
16:11:29              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/pharesee/run/run.py", line 73, in _get
16:11:29       dl = self.GetDl(time=time)
16:11:29            ^^^^^^^^^^^^^^^^^^^^^
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/pharesee/run/run.py", line 262, in GetDl
16:11:29       hier = self._get_hierarchy(time, h5_filename.split("/")[-1])
16:11:29              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/pharesee/run/run.py", line 62, in _get_hierarchy
16:11:29       return _get_hier(hier)
16:11:29              ^^^^^^^^^^^^^^^
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/pharesee/run/run.py", line 55, in _get_hier
16:11:29       return hierarchy_from(
16:11:29              ^^^^^^^^^^^^^^^
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/pharesee/hierarchy/__init__.py", line 37, in hierarchy_from
16:11:29       return hierarchy_fromh5(h5_filename, times, hier, **kwargs)
16:11:29              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/pharesee/hierarchy/fromh5.py", line 303, in hierarchy_fromh5
16:11:29       return new_from_h5(h5_filename, time, **kwargs)
16:11:29              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/pharesee/hierarchy/fromh5.py", line 274, in new_from_h5
16:11:29       patch_levels = patch_levels_from_h5(h5f, time, selection_box=selection_box[it])
16:11:29                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:11:29     File "/opt/buildagent/work/3bd323ee5a73a841/pyphare/pyphare/pharesee/hierarchy/fromh5.py", line 170, in patch_levels_from_h5
16:11:29       for lvl_key, lvl in h5f[h5_time_grp_key][time].items():

16:11:29     File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
16:11:29     File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
16:11:29     File "/usr/lib64/python3.12/site-packages/h5py/_hl/group.py", line 357, in __getitem__
16:11:29       oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
16:11:29             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16:11:29     File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
16:11:29     File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
16:11:29     File "h5py/h5o.pyx", line 189, in h5py.h5o.open
16:11:29   KeyError: "Unable to open object (object '11.0000000000' doesn't exist)"
@PhilipDeegan PhilipDeegan added bug 🔥 Something isn't working diagnostics outputs labels Aug 7, 2024
@PhilipDeegan PhilipDeegan changed the title sporadic test failure td1dtagged - sporadic test failure Aug 7, 2024
@nicolasaunai nicolasaunai added this to the 1.1 milestone Aug 8, 2024
PhilipDeegan added a commit to PhilipDeegan/PHARE that referenced this issue Sep 5, 2024
@PhilipDeegan PhilipDeegan reopened this Sep 6, 2024
@PhilipDeegan
Copy link
Member Author

todo, close if we don't see the tdtagged issue hereafter

@nicolasaunai
Copy link
Member

check if h5 file has time like 11.000000...1 or something and so the time/key asked may not be found in the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🔥 Something isn't working diagnostics outputs
Projects
Status: Done 🥳
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants