Repository navigation
DataAlgo : Move to dedicated namespace - #1561
Open
johnhaddon wants to merge 2 commits into
Open
johnhaddon wants to merge 2 commits into
johnhaddon wants to merge 2 commits into
Conversation
johnhaddon
force-pushed
the
dataAlgoNamespace
branch
from
September 15, 2026 14:56
1ac468d to
ab69dc4
Compare
Member
Author
|
Would be good to get some eyes on this please @murraystevenson. |
murraystevenson
left a comment
Collaborator
There was a problem hiding this comment.
Apologies, forgot about this one. The mechanical changes all look good to me, and it makes sense to move these to a dedicated namespace. I've noted a few thoughts inline, feel free to address how you see fit and squash in any changes so this is ready to merge.
Comment on lines
+59
to
65
| def( "getGeometricInterpretation", &IECore::DataAlgo::getGeometricInterpretation ); | ||
| def( "setGeometricInterpretation", &IECore::DataAlgo::setGeometricInterpretation ); | ||
|
|
||
| def( "uniqueValues", &uniqueValues ); | ||
| def( "uniqueValues", &IECore::DataAlgo::uniqueValues ); | ||
|
|
||
| def( "size", &IECore::size ); | ||
| def( "size", &IECore::DataAlgo::size ); | ||
| def( "address", &addressWrapper ); |
Collaborator
There was a problem hiding this comment.
For consistency, is it worth moving these into IECore.DataAlgo while we're at it?
Member
Author
Comment on lines
+4
to
+7
| Improvements | ||
| ------------ | ||
|
|
||
| - DataAlgo : Moved all functionality into an `IECore::DataAlgo` namespace. |
Collaborator
There was a problem hiding this comment.
If we're targeting main, this should be under 10.x.x.x.
Comment on lines
+112
to
+114
| // Temporary backwards-compatibility with earlier non-namespaced version. | ||
| /// \todo Remove | ||
| using namespace DataAlgo; |
Collaborator
There was a problem hiding this comment.
Are we considering the old IECore:: names deprecated? If so, should that be announced in Changes?
With a `using` fallback so folks don't have to adapt right away. Technically this is still a source compatibility break though, as the USD changes show - it's possible for ambiguity to exist with pre-existing DataAlgo namespaces in other libraries.
johnhaddon
force-pushed
the
dataAlgoNamespace
branch
from
November 26, 2026 09:56
ab69dc4 to
225fd0e
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I've been finding things like
IECore::size()andIECore::trait()kindof unobvious, and I think moving them to a namespace helps with that.