-
Notifications
You must be signed in to change notification settings - Fork 85
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
xml2json not working with empty/missing <Data> which should be optional #618
Comments
thanks @beojan for the report. Can you make the XML and ROOT files available somewhere public (for a toy example there should not be any access issues, no need to use a ATLAS internal example) ? We can then debug. Probably it's some detail that we're not covering for that specific measurement. |
Attached. I generated dummy data, but the structure is the same. Beware, there's no top level directory in this file, just a ROOT file and the XML file. |
The combination XML is also attached here. In the combination case, the XML doesn't even load, so it's probably not a problem with the specific measurement. |
Yes, because the measurement is blinded (I'm just looking for expected limits). |
Thanks. Can you (just as a test) try adding a dummy data histogram (with
empty data.. say all zero counts) and see if that works? To be clear you
should always run `xml2json` on the measurement xml, not the individual
channels.
…On Mon, Oct 21, 2019 at 2:12 PM Beojan Stanislaus ***@***.***> wrote:
Yes, because the measurement is blinded (I'm just looking for expected
limits).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/diana-hep/pyhf/issues/618?email_source=notifications&email_token=AARV6A25I3S2TFRLUSRYBBDQPWMDXA5CNFSM4JC3WBC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB2DGQY#issuecomment-544486211>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARV6A2KLNUC7R5YAMB6YTTQPWMDXANCNFSM4JC3WBCQ>
.
|
I reused the background histogram as the data, and it works. Thanks.
…On Mon, Oct 21, 2019 at 1:42 PM Lukas ***@***.***> wrote:
Thanks. Can you (just as a test) try adding a dummy data histogram (with
empty data.. say all zero counts) and see if that works? To be clear you
should always run `xml2json` on the measurement xml, not the individual
channels.
On Mon, Oct 21, 2019 at 2:12 PM Beojan Stanislaus <
***@***.***>
wrote:
> Yes, because the measurement is blinded (I'm just looking for expected
> limits).
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <
https://github.com/diana-hep/pyhf/issues/618?email_source=notifications&email_token=AARV6A25I3S2TFRLUSRYBBDQPWMDXA5CNFSM4JC3WBC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB2DGQY#issuecomment-544486211
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AARV6A2KLNUC7R5YAMB6YTTQPWMDXANCNFSM4JC3WBCQ
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/diana-hep/pyhf/issues/618?email_source=notifications&email_token=AA4OENKAFFNAYC65DAHE63TQPWPRXA5CNFSM4JC3WBC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB2FW2Q#issuecomment-544496490>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4OENOOV55EMB2Q74VDDR3QPWPRXANCNFSM4JC3WBCQ>
.
|
./cc @alexander-held who ran into this issue as well. |
related: #566 |
Description
xml2json isn't working. With a single channel file, an empty skeleton is returned:
With the multi channel file, I get an
IsADirectoryError
:Expected Behavior
In each case, JSON would be returned describing the full model.
Actual Behavior
An empty JSON skeleton is returned, or an
IsADirectoryError
is thrown.Steps to Reproduce
meas.writeToFile
meas->PrintXML("meas")
pyhf xml2json meas/meas.xml
PyHF is installed into an empty virtualenv with Python 3.7.4. The PyHF version is 0.1.2, but the problem also appears after installing from git master.
Checklist
git fetch
to get the most up to date version ofmaster
The text was updated successfully, but these errors were encountered: