-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagate chunk_layout to Python meep.Simulation object #1673
Propagate chunk_layout to Python meep.Simulation object #1673
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1673 +/- ##
==========================================
+ Coverage 73.20% 73.28% +0.08%
==========================================
Files 13 13
Lines 4515 4522 +7
==========================================
+ Hits 3305 3314 +9
+ Misses 1210 1208 -2
|
I think the failing test Line 69 in 89c9349
The reason this bug is a little hard to track down is because if the user does not pass in a Lines 133 to 141 in 89c9349
What should happen is the |
* upstream sim.chunk_layout propagation into meep * fixed stateful funkiness with test_chunk_layout.py * changes for review
* upstream sim.chunk_layout propagation into meep * fixed stateful funkiness with test_chunk_layout.py * changes for review
If a
meep.Simulation
object is created without specifyingchunk_layout
, then the default logic for choosing chunk partitionings is invoked whensim.init_sim()
is called. However, thechunk_layout
attribute on the Pythonmeep.Simulation
object previously was not updated and would still read asNone
. This pull request adds abp_to_py_bp()
function to convert the C++ object into a Pythonmeep.BinaryPartition
object and updates thesim.chunk_layout
attribute (and for consistency,sim.num_chunks
), insim._init_structure()
. (Fixes #1648)