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

BUG: plotting while run is still open #185

Open
prjemian opened this issue Nov 15, 2023 · 3 comments
Open

BUG: plotting while run is still open #185

prjemian opened this issue Nov 15, 2023 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@prjemian
Copy link
Contributor

Tried plotting from a run while it was still open (data was still being collected). Here's the exception trace:

(base) jemian@otz ~ $ conda activate gemviz
(gemviz) jemian@otz ~ $ gemviz &
[1] 149795
(gemviz) jemian@otz ~ $ Traceback (most recent call last):
  File "/home/beams1/JEMIAN/Documents/projects/BCDA-APS/gemviz/gemviz/bluesky_runs_catalog.py", line 121, in doRunSelectedSlot
    self.brc_run_viz.setData(tapi.run_description_table(run))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beams1/JEMIAN/Documents/projects/BCDA-APS/gemviz/gemviz/tapi.py", line 234, in run_description_table
    data = stream["data"].read()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/beams/JEMIAN/.conda/envs/gemviz/lib/python3.11/site-packages/tiled/client/xarray.py", line 101, in read
    return xarray.Dataset(
           ^^^^^^^^^^^^^^^
  File "/home/beams/JEMIAN/.conda/envs/gemviz/lib/python3.11/site-packages/xarray/core/dataset.py", line 685, in __init__
    variables, coord_names, dims, indexes, _ = merge_data_and_coords(
                                               ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beams/JEMIAN/.conda/envs/gemviz/lib/python3.11/site-packages/xarray/core/dataset.py", line 416, in merge_data_and_coords
    return merge_core(
           ^^^^^^^^^^^
  File "/home/beams/JEMIAN/.conda/envs/gemviz/lib/python3.11/site-packages/xarray/core/merge.py", line 723, in merge_core
    dims = calculate_dimensions(variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beams/JEMIAN/.conda/envs/gemviz/lib/python3.11/site-packages/xarray/core/variable.py", line 3257, in calculate_dimensions
    raise ValueError(
ValueError: conflicting sizes for dimension 'time': length 24 on 'time' and length 22 on {'time': 'timebase'}
gemviz &
[2] 149974
[1]   Aborted                 (core dumped) gemviz
@prjemian prjemian added the bug Something isn't working label Nov 15, 2023
@prjemian prjemian added this to the v1.0 milestone Nov 15, 2023
@prjemian
Copy link
Contributor Author

(gemviz) jemian@otz ~ $ gemviz --version
0.0.2.dev203+g9b20622

@prjemian
Copy link
Contributor Author

prjemian commented Feb 28, 2024

Also, when a run is open, its entry in the table model does not change as collection continues. That's a bug related to plotting while run is open. (This is #186)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant