Skip to content

Commit

Permalink
Merge pull request #221 from jpmorgan98/dev
Browse files Browse the repository at this point in the history
Moving visualizer to a sub package for mac support
  • Loading branch information
ilhamv authored Aug 8, 2024
2 parents 08b8eba + 4914dbb commit 329bbc4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/visulization/godiva-mockup/input.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import numpy as np
import mcdc, h5py
from mcdc import visualizer

# =============================================================================
# Materials
Expand Down Expand Up @@ -73,7 +74,7 @@

mcdc.source(x=[-22.0, 22.0], time=[0.0, 5.0], isotropic=True)

mcdc.visualize(
visualizer.visualize(
start_time=0, end_time=1, tick_interval=0.1, material_colors={"water": [1, 0, 0]}
)
# =============================================================================
Expand Down
1 change: 0 additions & 1 deletion mcdc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@
save_particle_bank,
)
from mcdc.main import run, prepare
from mcdc.visualizer import visualize
1 change: 1 addition & 0 deletions mcdc/visualizer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from mcdc.visualizer.visualizer import visualize
File renamed without changes.

0 comments on commit 329bbc4

Please sign in to comment.