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

add howto for registering files #654

Closed
wants to merge 6 commits into from

Conversation

dylanmcreynolds
Copy link
Contributor

No description provided.

@danielballan
Copy link
Member

This guide is very short, or the new file was not committed. :-D

@dylanmcreynolds
Copy link
Contributor Author

Hah! Actual file now added.

Copy link
Contributor

@Wiebke Wiebke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a super helpful guide for how to ingest files, especially for the use case where Tiled is running and we want to register new data sets through python.

One minor thing: For the sake of completeness, I think it would be worthwhile to include a reference to the possibility of using tiled catalog register for a similar, but more granular version of tiled serve directory.

### Startup mode: tiled serve directory
When Tiled is started up with `tiled serve directory <directory name>`, it takes some time at startup to read the filesystem and store information in its database. For smaller implementations of Tiled, this is very convenient. However, if the file system is large, this process can take too long every time Tiled starts up.

In this mode, tiled also watches the folder for changes, and reindexes the entire tree when it encounters them. Again, this is fine for smaller instances, but can be too slow if the tree is large. Additionally, watching directories for changes can be inconsistent in cases where the directories are network mounted, as with `NFS` mounted file systems.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe watching only happens when passing -w or --watch as an option.

if __name__ == "__main__":
asyncio.run(
process_file(
# "/tiled_storage/beamlines/8.3.2/recons/rec20240207_120550_test_no_xrays_n257",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May want to remove the commented file reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed, thanks

@danielballan
Copy link
Member

Commits were pulled into #661

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

Successfully merging this pull request may close these issues.

3 participants