Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand tutorials of writing array blocks #693

Open
TibbersHao opened this issue Mar 18, 2024 · 2 comments
Open

Expand tutorials of writing array blocks #693

TibbersHao opened this issue Mar 18, 2024 · 2 comments

Comments

@TibbersHao
Copy link

With some of my recent work, I have extensively utilized the functionality of tiled.client.array.ArrayClient.write_block to write back single slices of 2d arrays to client during the result generation phase.

If needed, I am happy to tailor my codes and contribute a paragraph or two under the tutorial of writing arrays, as it might be beneficial for future developers to leverage on.

What I am thinking about to cover:

  • Create Array structure using ArrayStructure.from_array
  • Divide structure into desired chunks
  • Pre-allocate space as a container in Tiled client
  • Write blocks according to index

Does that sound like a good idea?

@danielballan
Copy link
Member

That would be very welcome. Thanks!

@TibbersHao
Copy link
Author

Great, @danielballan a small PR #696 just submitted, feel free to make changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants