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
Fix for remove_outlier3d #622 #623
Merged
Merged
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e61dcb8
fixing the memory segfault issue
dkazanc cb61f9f
fixing the memory allocation issue
dkazanc 1757ef9
removes stdio
dkazanc 4585cd1
corrections
dkazanc 01e5ec5
BLD: Update submodule to tomopy fork
carterbox 1e92caa
REF: Add a ctypes size_t converter
carterbox 3bafa8d
REF: Use size_t in median_flt without breaking ABI
carterbox fb71b0e
CI: Use libmamba solver to create environment
carterbox aa8e1cd
Merge branch 'ci-env' into fixmedian
carterbox 2f0ab1c
BUG: Add path key to submodule
carterbox File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the pro/con of using
size_t
for all indexing and size variables instead of a mix of long and size_t with casting? Do some of these indexing variable need to represent negative integers?My concern with mixing types and casting on lines like this is that it might still overflow before the cast to size_t? Because the order of operations is to perform the computation inside the parenthesis before casting.
Maybe it should be something like this? Where everything that is not cast is already
size_t
? This way the multiplications are computed using types that are alreadysize_t
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, makes total sense. I guess
(size_t)(dimX * dimY * k1 )
could overflow before getting converted tosize_t
. will try to fix...