-
Notifications
You must be signed in to change notification settings - Fork 10
Throw warning for variadic notation for non-variadic names #591
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
Conversation
4bce7ac
to
9ac4396
Compare
I generally support this, but maybe we only merge this once we have sibling inheritance properly solved? |
"/ENTRY/CALIBRATION[transmission_correction]" WARNING: Given group name 'CALIBRATION' conflicts with the non-variadic name 'transmission_correction (opt)', which should be of type NXcalibration. |
Yeah, that was the idea 👍 just wanted to have a starting point for this.
That is indeed weird. Will need to check what is going on here. |
bad368d
to
3579f43
Compare
This should be allowed now, but it goes a bit against the logic we enforce elsewhere. Since However, if your template has
we would still get a warning like See also this test and the one above. So, the question is, do we even allow this? May be confusing if you write the template like above and you get a warning even though each element in the template is technically correct. The same will happen if you have (assuming sibiling inheritance works)
This will tell you that the |
What should this do for fields with given concept name? I was expecting similar behavior, but off course the type cannot be checked. In particular the last one is not so easy to solve if we want to keep the "*" notation, as we cannot define all potential axisname_indices, yet want to define a few one, so they should be addressable using the same notation to be able to use the "*" construct. |
Off course it would be helpful if there was not this restriction in resolution, but I think if this is difficult to implement, we could keep this and just add a small note in the documentation about the conversion template formalism. |
In the current version, |
Closing here as all changes were brought to #621 |
No description provided.