Skip to content

Commit

Permalink
Redo 3D plots results with consistent FSR numbering, avoid deepcopy o…
Browse files Browse the repository at this point in the history
…f SPH lib
  • Loading branch information
GiudGiud committed Jun 15, 2020
1 parent 9de20b4 commit 44896ff
Show file tree
Hide file tree
Showing 33 changed files with 9 additions and 8 deletions.
Binary file modified tests/test_plot_3D_cmfd_cells/true-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_fission_rates/true-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_fission_rates/true-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_fission_rates/true-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_fission_rates/true-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_fsrs/true-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_fsrs/true-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_fsrs/true-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_fsrs/true-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_plot_3D_spatial_fluxes/true-6.png
Binary file modified tests/test_plot_3D_spatial_fluxes/true-7.png
Binary file modified tests/test_plot_3D_spatial_fluxes/true-8.png
Binary file modified tests/test_plot_3D_spatial_fluxes/true-9.png
Binary file modified tests/test_plot_3D_tracks/true-0.png
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def _run_openmoc(self):
mgxs_lib, azim_spacing=self.azim_spacing,
num_azim=self.num_azim, num_threads=self.num_threads,
solver=self.solver, track_generator=track_generator,
geometry=openmoc_geometry, sph_domains=sph_domains)
geometry=openmoc_geometry, sph_domains=sph_domains,
return_library=False)

def _get_results(self, num_iters=True, keff=True, fluxes=True,
num_fsrs=False, num_tracks=False, num_segments=False,
Expand Down
12 changes: 6 additions & 6 deletions tests/testing_harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,12 @@ def _compare_images(self, img1, img2):
rgba2 = np.array(img2)

# Compute histograms of each images pixels
hr1, bins1 = np.histogram(rgba1[...,0], bins=256, normed=True)
hg1, bins1 = np.histogram(rgba1[...,1], bins=256, normed=True)
hb1, bins1 = np.histogram(rgba1[...,2], bins=256, normed=True)
hr2, bins2 = np.histogram(rgba2[...,0], bins=256, normed=True)
hg2, bins2 = np.histogram(rgba2[...,1], bins=256, normed=True)
hb2, bins2 = np.histogram(rgba2[...,2], bins=256, normed=True)
hr1, bins1 = np.histogram(rgba1[...,0], bins=256, density=True)
hg1, bins1 = np.histogram(rgba1[...,1], bins=256, density=True)
hb1, bins1 = np.histogram(rgba1[...,2], bins=256, density=True)
hr2, bins2 = np.histogram(rgba2[...,0], bins=256, density=True)
hg2, bins2 = np.histogram(rgba2[...,1], bins=256, density=True)
hb2, bins2 = np.histogram(rgba2[...,2], bins=256, density=True)
hist1 = np.array([hr1, hg1, hb1]).ravel()
hist2 = np.array([hr2, hg2, hb2]).ravel()

Expand Down
2 changes: 1 addition & 1 deletion tests/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -ev

# Run all tests
./run_tests.py --coverage --verbose
./run_tests.py --coverage

0 comments on commit 44896ff

Please sign in to comment.