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

add "power" matching #147

Merged
merged 7 commits into from
Jun 17, 2021
Merged

add "power" matching #147

merged 7 commits into from
Jun 17, 2021

Conversation

mgeplf
Copy link
Contributor

@mgeplf mgeplf commented Jun 7, 2021

No description provided.

@mgeplf mgeplf added the WIP work in progress label Jun 7, 2021
@mgeplf
Copy link
Contributor Author

mgeplf commented Jun 7, 2021

@matz-e you're welcome to read this, I still have to up the coverage, and fix some of the build checks.

Copy link
Member

@matz-e matz-e left a comment

Choose a reason for hiding this comment

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

Alright, I think these are my initial 0.02 BTC. I've reached my mental call-graph reconstruction capacity, so I'm sorry if some of these don't make sense.

include/bbp/sonata/nodes.h Outdated Show resolved Hide resolved
src/node_sets.cpp Show resolved Hide resolved
case Op::regex:
return "$regex";
default:
throw SonataError("Not Implemented NodeSetBasicOperator");
Copy link
Member

Choose a reason for hiding this comment

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

Could be formatted like above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I let clang-format work its magic

Copy link
Member

Choose a reason for hiding this comment

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

I meant with fmt::format, sorry, not very clear.

src/node_sets.cpp Show resolved Hide resolved
src/nodes.cpp Outdated Show resolved Hide resolved
src/population.cpp Show resolved Hide resolved
src/utils.h Outdated Show resolved Hide resolved
src/nodes.cpp Outdated Show resolved Hide resolved
mgeplf added 2 commits June 8, 2021 13:20
* also added macro to declare something shouldn't be reached
src/nodes.cpp Outdated Show resolved Hide resolved
@mgeplf mgeplf removed the WIP work in progress label Jun 15, 2021
@mgeplf mgeplf requested review from matz-e and tomdele June 15, 2021 13:24
include/bbp/sonata/common.h Show resolved Hide resolved
src/node_sets.cpp Show resolved Hide resolved
@@ -75,6 +75,8 @@ Note: This does not match dynamics_params datasets)doc";

static const char *__doc_bbp_sonata_NodePopulation_matchAttributeValues_2 = R"doc(Like matchAttributeValues, but for vectors of values to match)doc";

static const char *__doc_bbp_sonata_NodePopulation_regexMatch = R"doc()doc";
Copy link
Member

Choose a reason for hiding this comment

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

No documentation?

Also, should we explicitly mark these as extensions to the SONATA™ spec? Or is there an upstream PR amending this situation already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, need to add the doc...I will do that.

I think it's worth doing a PR upstream to the docs, at least so ppl can read about the feature

@mgeplf mgeplf merged commit 4795217 into master Jun 17, 2021
@mgeplf mgeplf deleted the power-matching branch June 17, 2021 11:30
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.

2 participants