code uniformity across versions

This commit is contained in:
2026-07-30 21:18:26 +02:00
parent a315e70576
commit 5ca4f4045a
5 changed files with 1137 additions and 713 deletions
+1 -4
View File
@@ -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()