Improve how to move cells between problems and Universes #105
Labels
code improvement
A feature request that will improve the software and its maintainability, but be invisible to users.
feature request
An issue that improves the user interface.
This is related to this discussion: https://hpcgitlab.hpc.inl.gov/experiment_analysis/mcnpy/-/merge_requests/45#note_399815.
Currently to add cells from one cell to another problem you have to:
problem.cells
problem.add_cell_children_to_problem
to copy over the surfaces, etc.This method is pretty error prone and can lead to redundant surfaces and conflicts as identical surfaces read in from different files will be different objects. There is some capability to detect this and it's not great. Also this heavily relies on hashing, which is bad (#22).
The ideal use case is that when a user runs
problem.cells.append()
the cells are added properly and they don't have to think anymore. Similarlyuniverse.append
should do a similar thing.problem.universes.append()
should also add all children cells to the problem.The text was updated successfully, but these errors were encountered: