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

tag-register raw array #4100

Merged
merged 2 commits into from Jan 23, 2018

Conversation

karlnapf
Copy link
Member

to make ::CSGObject::equals work

@karlnapf karlnapf changed the title tag-register raw array's tag-register raw array Jan 22, 2018
@karlnapf
Copy link
Member Author

This one has a high impact: It brings the integration tests back: those are based on the CDynamicObjectArray and since the parameter was not registered, ::equals always returned true since e4a19a2

Copy link
Member

@lisitsyn lisitsyn left a comment

Choose a reason for hiding this comment

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

Super!

@@ -1730,12 +1730,17 @@ template<class ST> void CStringFeatures<ST>::init()
original_num_symbols=0;

m_parameters->add((CSGObject**) &alphabet, "alphabet");

m_parameters->add_vector(&features, &num_vectors, "features",
Copy link
Member Author

Choose a reason for hiding this comment

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

every raw array, which was previously registered with add_vector should also be registered with watch_param

@karlnapf karlnapf merged commit 103e8a0 into shogun-toolbox:develop Jan 23, 2018
@karlnapf karlnapf deleted the feature/equals_with_array branch January 23, 2018 10:09
@karlnapf karlnapf restored the feature/equals_with_array branch January 23, 2018 10:09
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.

None yet

2 participants