Skip to content

Commit

Permalink
remove duplicate file from common/loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
froyo-np committed Nov 19, 2024
1 parent 31491a2 commit dfabeed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 242 deletions.
236 changes: 0 additions & 236 deletions examples/src/common/loaders/ome-zarr/zarr-data.ts

This file was deleted.

5 changes: 2 additions & 3 deletions examples/src/data-sources/ome-zarr/planar-slice.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { type ZarrDataset } from '@alleninstitute/vis-omezarr';
import { loadMetadata, type ZarrDataset } from '@alleninstitute/vis-omezarr';
import type { AxisAlignedPlane } from '~/data-renderers/versa-renderer';
import type { ColorMapping } from '../../data-renderers/types';
import type { OptionalTransform, Simple2DTransform } from '../types';
import { load } from '~/common/loaders/ome-zarr/zarr-data';
export type ZarrSliceConfig = {
type: 'zarrSliceConfig';
url: string;
Expand Down Expand Up @@ -33,7 +32,7 @@ function assembleZarrSlice(config: ZarrSliceConfig, dataset: ZarrDataset): AxisA
}
export function createZarrSlice(config: ZarrSliceConfig): Promise<AxisAlignedZarrSlice> {
const { url } = config;
return load(url).then((dataset) => {
return loadMetadata(url).then((dataset) => {
return assembleZarrSlice(config, dataset);
});
}
5 changes: 2 additions & 3 deletions examples/src/data-sources/ome-zarr/slice-grid.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { type ZarrDataset } from '@alleninstitute/vis-omezarr';
import { loadMetadata, type ZarrDataset } from '@alleninstitute/vis-omezarr';
import type { AxisAlignedPlane } from '~/data-renderers/versa-renderer';
import type { ColorMapping } from '../../data-renderers/types';
import type { OptionalTransform, Simple2DTransform } from '../types';
import { load } from '~/common/loaders/ome-zarr/zarr-data';

export type ZarrSliceGridConfig = {
type: 'ZarrSliceGridConfig';
Expand Down Expand Up @@ -34,7 +33,7 @@ function assembleZarrSliceGrid(config: ZarrSliceGridConfig, dataset: ZarrDataset
}
export function createZarrSliceGrid(config: ZarrSliceGridConfig): Promise<AxisAlignedZarrSliceGrid> {
const { url } = config;
return load(url).then((dataset) => {
return loadMetadata(url).then((dataset) => {
return assembleZarrSliceGrid(config, dataset);
});
}

0 comments on commit dfabeed

Please sign in to comment.