mirror of
https://github.com/edoverg/modeconverter.git
synced 2026-10-14 23:06:39 +00:00
code uniformity across versions
This commit is contained in:
@@ -25,7 +25,6 @@ from smt.design_space import (
|
||||
DesignSpace,
|
||||
)
|
||||
|
||||
|
||||
##############################
|
||||
#physics and simulation domain
|
||||
wavelength = 1.55e-6
|
||||
@@ -373,6 +372,7 @@ def make_polarPlot_of(given_field,choose_quantity="amplitude",save_name="polar_p
|
||||
ax.axis('off')
|
||||
cbar = plt.colorbar(im, ax=ax)
|
||||
plt.savefig("results/" + save_name + ".pdf")
|
||||
plt.close()
|
||||
|
||||
def shift_spatial_grid(shift_amount_x,shift_amount_y):
|
||||
'''Shifts the spatial grid by a given amount. This is useful for centering the source field on the metasurface.
|
||||
@@ -777,7 +777,4 @@ if __name__ == "__main__":
|
||||
#if the results folder does not exist, create it
|
||||
if not os.path.exists('results'):
|
||||
os.makedirs('results')
|
||||
|
||||
|
||||
|
||||
run_ego()
|
||||
Reference in New Issue
Block a user