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

lumi schema & name property #2547

Open
andrewfowlie opened this issue Sep 24, 2024 · 0 comments
Open

lumi schema & name property #2547

andrewfowlie opened this issue Sep 24, 2024 · 0 comments

Comments

@andrewfowlie
Copy link

andrewfowlie commented Sep 24, 2024

I was looking at the schema, trying to understand which elements are required etc. I noticed that the lumi modifier schema gives the name as well as the type to be { "const": "lumi" }

"additionalProperties": false
},
"lumi": {
"type": "object",
"properties": {
"name": { "const": "lumi" },
"type": { "const": "lumi" },
"data": { "type": "null" }

If I understand this correctly, it says that all lumi modifiers must be called lumi.

Compare this to other modifiers e.g., shapesys.

"shapesys": {
"type": "object",
"properties": {
"name": { "type": "string" },
"type": { "const": "shapesys" },
"data": { "type": "array", "items": {"type": "number"}, "minItems": 1 }

here, it seems like the name can be any string you want.

Do I understand this correctly? Is this lumi restriction deliberate so that there can only ever be a single lumi modifier named lumi? This kind of makes sense, although I could imagine wanting to have different lumi modifiers, especially if I was including both ATLAS and CMS data. Or is it a copy-paste error since it is the same as the line below it?

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

No branches or pull requests

1 participant