-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
191 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import babyyoda as by | ||
import uhi.typing.plottable as uhit | ||
|
||
|
||
def load_histos(): | ||
g2 = next(iter(by.read("tests/test_histo1d_v2.yoda").values())) | ||
return g2 | ||
|
||
|
||
def test_plottable(): | ||
h2 = load_histos() | ||
assert isinstance(h2, uhit.PlottableHistogram) | ||
|
||
|
||
def test_plottable_histoprint(): | ||
from histoprint import print_hist | ||
|
||
h2 = load_histos() | ||
print_hist(h2) | ||
|
||
|
||
def test_plottable_mplhep(): | ||
import mplhep as hep | ||
|
||
h2 = load_histos() | ||
hep.histplot(h2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import babyyoda as by | ||
import uhi.typing.plottable as uhit | ||
|
||
|
||
def load_histos(): | ||
h2 = next(iter(by.read("tests/test_histo2d_v2.yoda").values())) | ||
return h2 | ||
|
||
|
||
def test_plottable(): | ||
h2 = load_histos() | ||
assert isinstance(h2, uhit.PlottableHistogram) | ||
|
||
|
||
def test_plottable_histoprint(): | ||
from histoprint import print_hist | ||
|
||
h2 = load_histos() | ||
print_hist(h2) | ||
|
||
|
||
def test_plottable_mplhep(): | ||
import mplhep as hep | ||
|
||
h2 = load_histos() | ||
hep.hist2dplot(h2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import babyyoda as by | ||
import uhi.typing.plottable as uhit | ||
|
||
|
||
def load_histos(): | ||
g2 = next(iter(by.read_grogu("tests/test_histo1d_v2.yoda").values())) | ||
return g2 | ||
|
||
|
||
def test_plottable(): | ||
h2 = load_histos() | ||
assert isinstance(h2, uhit.PlottableHistogram) | ||
|
||
|
||
def test_plottable_histoprint(): | ||
from histoprint import print_hist | ||
|
||
h2 = load_histos() | ||
print_hist(h2) | ||
|
||
|
||
def test_plottable_mplhep(): | ||
import mplhep as hep | ||
|
||
h2 = load_histos() | ||
hep.histplot(h2) |
Oops, something went wrong.