Skip to content

Commit

Permalink
Update LazyReferenceMapper.create() syntax in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Jan 29, 2024
1 parent 617d9ce commit e6b6eaf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/source/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,18 @@ one go and may be faster, if you have a Dask cluster available.
fs = fsspec.filesystem("file")
os.makedirs("combined.parq")
out = LazyReferenceMapper.create(1000, "combined.parq", fs)
out = LazyReferenceMapper.create(record_size=1000, root="combined.parq", fs=fs)
# Create references from input files
single_ref_sets = [hdf.SingleHdf5ToZarr(_).translate() for _ in files]
out_dict = MultiZarrToZarr(
single_ref_sets,
remote_protocol="memory",
remote_protocol="s3",
concat_dims=["time"],
out=out).translate()
remote_options={"anon": True},
out=out
).translate()
out.flush()
Expand Down

0 comments on commit e6b6eaf

Please sign in to comment.