Skip to content
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

Subpixel smoothing gradients #1780

Merged
merged 8 commits into from
Nov 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change material grid smoothing default
  • Loading branch information
Alec Hammond committed Nov 6, 2021
commit ef3fce19803bed20b4c3c63357734d61784fa1cf
2 changes: 1 addition & 1 deletion python/geom.py
Original file line number Diff line number Diff line change
@@ -529,7 +529,7 @@ class MaterialGrid(object):
the `default_material` argument of the [`Simulation`](#Simulation) constructor (similar to a
[material function](#medium)).
"""
def __init__(self,grid_size,medium1,medium2,weights=None,grid_type="U_DEFAULT",do_averaging=False,beta=0,eta=0.5,damping=0):
def __init__(self,grid_size,medium1,medium2,weights=None,grid_type="U_DEFAULT",do_averaging=True,beta=0,eta=0.5,damping=0):
"""
Creates a `MaterialGrid` object.