File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,6 @@ function App() {
162
162
< RangeSlider
163
163
minMax = { [ zarrReader . scale . min , zarrReader . scale . max ] }
164
164
label = "Scale"
165
- // @ts -expect-error: already fixed in the feature branch
166
165
onValueChange = { setMinMax }
167
166
/>
168
167
Original file line number Diff line number Diff line change @@ -114,17 +114,14 @@ export default class ZarrReader {
114
114
} : TileIndex & { timestamp : number } ) : Promise <
115
115
TypedArray < NumberDataType > | undefined
116
116
> {
117
- const arr = await zarr . open . v3 (
118
- this . root . resolve ( `${ this . _t } /${ this . _varName } ` ) ,
119
- {
120
- kind : "array" ,
121
- }
122
- ) ;
117
+ const arr = await zarr . open . v3 ( this . root . resolve ( `${ z } /${ this . _varName } ` ) , {
118
+ kind : "array" ,
119
+ } ) ;
123
120
124
121
if ( arr . is ( "number" ) ) {
125
122
const { data } = await arr . getChunk ( [ timestamp , y , x ] ) ;
126
123
// @TODO : remove once the data has actual timestamps
127
- if ( timestamp == 2 ) {
124
+ if ( timestamp == 1 ) {
128
125
return new Float32Array ( this . tileSize * this . tileSize ) ;
129
126
}
130
127
You can’t perform that action at this time.
0 commit comments