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

Locate grain function is slow due to re-running grain finding #129

Open
rhysgt opened this issue Jul 10, 2024 · 5 comments
Open

Locate grain function is slow due to re-running grain finding #129

rhysgt opened this issue Jul 10, 2024 · 5 comments

Comments

@rhysgt
Copy link
Contributor

rhysgt commented Jul 10, 2024

Even after the find_grains function has been executed succesfully, the function executes again when using the locate_grain function, wasting a lot of time.

@mikesmic
Copy link
Collaborator

Is this on the dev branch I assume? Running a function directly will not save to the datastore. You have to 'generate' the data you want, for grains you would run:
ebsd_map.data.generate('grains', min_grain_size=10)

@mikesmic
Copy link
Collaborator

locate_grain should generate the grains automatically, so it should have only run at the first execution. I'll have a look at that

@rhysgt
Copy link
Contributor Author

rhysgt commented Jul 10, 2024 via email

@rhysgt
Copy link
Contributor Author

rhysgt commented Jul 10, 2024 via email

@mikesmic
Copy link
Collaborator

It is updated in the main example notebook, not sure about the others

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