-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEP Fix MPL colorbar norm deprecation (#430)
Closes #414 by adding a mesh detector plot
- Loading branch information
1 parent
628f81e
commit 8bb05e7
Showing
4 changed files
with
14 additions
and
3 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,8 +1,19 @@ | ||
from . import compare_or_update_plot | ||
import pytest | ||
from serpentTools.data import readDataFile | ||
|
||
from . import compare_or_update_plot | ||
|
||
|
||
@compare_or_update_plot | ||
def testSpectrumPlot(): | ||
reader = readDataFile("bwr_det0.m") | ||
reader["spectrum"].spectrumPlot() | ||
|
||
|
||
@compare_or_update_plot | ||
def testBwrMeshPlot(): | ||
reader = readDataFile("bwr_det0.m") | ||
# Ensure that fix for #414 in in: matplotlib colorbar norm | ||
with pytest.warns(None) as record: | ||
reader["xymesh"].meshPlot(fixed={"energy": 0}) | ||
assert len(record) == 0 |