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
import copy | |
import emg3d | |
def get_model(inp, grid): | |
"""Model needs new a grid instead of vnC.""" | |
inp = {k: v for k, v in inp.items() if k != 'vnC'} | |
inp['grid'] = grid if isinstance(grid, dict) else grid.to_dict() | |
return emg3d.Model.from_dict(inp) | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.