Skip to content

Fix bug in different cuts#424

Merged
Zaharid merged 1 commit into
masterfrom
fixdcutts
Apr 12, 2019
Merged

Fix bug in different cuts#424
Zaharid merged 1 commit into
masterfrom
fixdcutts

Conversation

@Zaharid
Copy link
Copy Markdown
Contributor

@Zaharid Zaharid commented Apr 3, 2019

Fix bug where we would get that the cuts are different if a mask with
all the data had been written for one of the fits and not for the other.
For example, this would report that the cuts are different:

use_cuts: fromfit
fits:
  - 190310-tg-nlo-DIS
  - 181126-si-nlo-central_DISonly

template_text: |
    {@print_different_cuts@}

actions_:
    - report(main=True)

even if they aren't. The reason why this bug existed in the first place
was the willingness to avoid loading datasets just to check the actual
number of datapoints, given that that is expensive. That has been worked
around since.

@Zaharid Zaharid requested a review from scarrazza April 3, 2019 15:58
Fix  bug where we would get that the cuts are different if a mask with
all the data had been written for one of the fits and not for the other.
For example, this would report that the cuts are different:

```
use_cuts: fromfit
fits:
  - 190310-tg-nlo-DIS
  - 181126-si-nlo-central_DISonly

template_text: |
    {@print_different_cuts@}

actions_:
    - report(main=True)
```

even if they aren't. The reason why this bug existed in the first place
was the willingness to avoid loading datasets just to check the actual
number of datapoints, given that that is expensive. That has been worked
around since.
@Zaharid
Copy link
Copy Markdown
Contributor Author

Zaharid commented Apr 10, 2019

@scarrazza can you look at this?

Copy link
Copy Markdown
Member

@scarrazza scarrazza left a comment

Choose a reason for hiding this comment

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

Looks good.

@Zaharid Zaharid merged commit dbbd034 into master Apr 12, 2019
@Zaharid Zaharid deleted the fixdcutts branch April 16, 2019 12:29
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