-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from kreczko/latex-checks
[MRG] Latex checks
- Loading branch information
Showing
9 changed files
with
174 additions
and
73 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
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,28 @@ | ||
''' | ||
Created on 5 May 2015 | ||
@author: kreczko | ||
''' | ||
from tools.plotting import get_best_max_y | ||
from tools.hist_utilities import value_errors_tuplelist_to_graph | ||
from tools.hist_utilities import value_error_tuplelist_to_hist | ||
|
||
data_h = [( 3, 1 ), | ||
( 2, 1 ), | ||
( 1, 1 ), | ||
] | ||
data_g = [( 3, 1, 1 ), | ||
( 2, 1, 1 ), | ||
( 1, 1, 1 ), | ||
] | ||
bin_edges = [0, 1, 2, 3] | ||
|
||
def test_get_max_y_hist(): | ||
h = value_error_tuplelist_to_hist(data_h, bin_edges) | ||
max_y = get_best_max_y([h]) | ||
assert max_y == 3 + 1 | ||
|
||
def test_get_max_y_graph(): | ||
g = value_errors_tuplelist_to_graph(data_g, bin_edges) | ||
max_y = get_best_max_y([g]) | ||
assert max_y == 3 + 1 |
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
Oops, something went wrong.