Skip to content

Commit

Permalink
add versioned renderer with url+metadata support
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Oct 4, 2024
1 parent 56e2999 commit 3b64f8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/packages/state/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
RecordSource,
Store,
} from "relay-runtime";
import { State } from "./recoil";
import { ModalSample, State } from "./recoil";

export const deferrer =
(initialized: MutableRefObject<boolean>) =>
Expand Down Expand Up @@ -105,6 +105,7 @@ export const getStandardizedUrls = (
urls:
| readonly { readonly field: string; readonly url: string }[]
| { [field: string]: string }
| ModalSample["urls"]
) => {
if (!Array.isArray(urls)) {
return urls;
Expand Down
2 changes: 2 additions & 0 deletions fiftyone/server/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import fiftyone.core.labels as fol
from fiftyone.core.collections import SampleCollection
from fiftyone.utils.utils3d import OrthographicProjectionMetadata
from fiftyone.utils.rerun import RrdFile

import fiftyone.core.media as fom

Expand All @@ -33,6 +34,7 @@
fol.Heatmap: "map_path",
fol.Segmentation: "mask_path",
OrthographicProjectionMetadata: "filepath",
RrdFile: "filepath",
}
_FFPROBE_BINARY_PATH = shutil.which("ffprobe")

Expand Down

0 comments on commit 3b64f8a

Please sign in to comment.