Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Apr 8, 2021
1 parent 82f51d1 commit 3180d54
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions src/creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,11 @@ export type CreateArrayOptions = {
* @param readOnly `true` if array should be protected against modification, defaults to `false`.
* @param dimensionSeparator if specified, defines an alternate string separator placed between the dimension chunks.
*/
export async function create(opts: CreateArrayOptions): Promise<ZarrArray> {
const {
shape,
path,
chunkStore,
filters,
dimensionSeparator,
chunks = true,
dtype = "<i4",
compressor = null,
fillValue = null,
order = "C",
overwrite = false,
cacheMetadata = true,
cacheAttrs = true,
readOnly = false,
} = opts;

const store = normalizeStoreArgument(opts.store);
export async function create(
{ shape, chunks = true, dtype = "<i4", compressor = null, fillValue = null, order = "C", store, overwrite = false, path, chunkStore, filters, cacheMetadata = true, cacheAttrs = true, readOnly = false, dimensionSeparator }: CreateArrayOptions,
): Promise<ZarrArray> {

store = normalizeStoreArgument(store);

await initArray(store, shape, chunks, dtype, path, compressor, fillValue, order, overwrite, chunkStore, filters, dimensionSeparator);
const z = await ZarrArray.create(store, path, readOnly, chunkStore, cacheMetadata, cacheAttrs);
Expand Down

0 comments on commit 3180d54

Please sign in to comment.