-
Notifications
You must be signed in to change notification settings - Fork 3
Fix memory leak from cached xarray wrappers in CellMapImage #64
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
610f926
Initial plan
Copilot 3ee90bc
Fix memory leak by clearing array cache after data retrieval
Copilot a1924d1
Add documentation for array cache clearing and more comprehensive tests
Copilot 7031c62
Clarify that TensorStore cache is preserved when clearing array wrapper
Copilot df15e57
Add documentation and demo for memory leak fix
Copilot 5ea10f2
Update demo_memory_fix.py
rhoadesScholar b29b4ec
fix: resolve memory leak by clearing array cache in CellMapImage
rhoadesScholar aae7e30
fix: optimize device handling and refactor properties in CellMapDatas…
rhoadesScholar ae9d561
black format
rhoadesScholar 35b3665
fix: optimize bounding box and sampling box computations in CellMapDa…
rhoadesScholar ab0fbea
black format
rhoadesScholar ecf1631
Update tests/test_memory_management.py
rhoadesScholar 5577a12
Update src/cellmap_data/multidataset.py
rhoadesScholar 709451f
fix: address PR review feedback - add try/finally for cache clearing …
Copilot 24fb1b6
black format
rhoadesScholar 8438cde
fix: implement _ImmediateExecutor to prevent crashes on Windows+Tenso…
rhoadesScholar a6e96e8
black format
rhoadesScholar ce9054a
fix: properly emit warnings using logger instead of constructing unus…
Copilot b065568
Update multidataset.py
rhoadesScholar 0bae283
Update multidataset.py
rhoadesScholar 907b28a
black format
rhoadesScholar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,4 +116,7 @@ clean/ | |
| .pytest_cache/ | ||
| __pycache__/ | ||
| mypy_cache/ | ||
| .claude/ | ||
| .claude/ | ||
| *.out | ||
| *.log | ||
| *.err | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.