Skip to content

Commit

Permalink
fix: fix bug preventing demo RRD files from running
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Dec 5, 2024
1 parent 3af6b42 commit 4f824b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/aind_qc_portal/panel/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ def _parse_type(reference, data):
)
elif "rrd" in reference:
# files should be in the format name_vX.Y.Z.rrd
full_version = reference.split("_v")[1].split(".rrd")[0]
if "_v" in reference:
full_version = reference.split("_v")[1].split(".rrd")[0]
else:
full_version = "0.19.1"
src = f"https://app.rerun.io/version/{full_version}/index.html?url={data}"
iframe_html = f'<iframe src="{src}" style="height:100%; width:100%" frameborder="0"></iframe>'
return pn.pane.HTML(
Expand Down

0 comments on commit 4f824b7

Please sign in to comment.