Skip to content

Commit

Permalink
fix: use value constraint only for model centre
Browse files Browse the repository at this point in the history
  • Loading branch information
rabii-chaarani committed Jun 5, 2024
1 parent 8ae8c6b commit 5cca9eb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions FoldOptLib/input/data_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,9 @@ def set_axial_surface_field_constraints(self):
].to_numpy()
except:
mean_x, mean_y, mean_z = self.axial_normals()[["X", "Y", "Z"]].mean(0)
min_x, min_y, min_z = self.axial_normals()[["X", "Y", "Z"]].min(0)
max_x, max_y, max_z = self.axial_normals()[["X", "Y", "Z"]].max(0)
value_constraints = numpy.array(
[
[mean_x, mean_y, mean_z, 0.0, 1.0],
[min_x, min_y, min_z, -500., 1.0],
[max_x, max_y, max_z, 500.0, 1.0],
],
dtype=float,
)
Expand All @@ -166,13 +162,9 @@ def set_fold_axis_field_constraints(self):
].to_numpy()
except:
mean_x, mean_y, mean_z = self.y_normals()[["X", "Y", "Z"]].mean(0)
min_x, min_y, min_z = self.y_normals()[["X", "Y", "Z"]].min(0)
max_x, max_y, max_z = self.y_normals()[["X", "Y", "Z"]].max(0)
value_constraints = numpy.array(
[
[mean_x, mean_y, mean_z, 0.0, 1.0],
[min_x, min_y, min_z, -500., 1.0],
[max_x, max_y, max_z, 500.0, 1.0],
],
dtype=float,
)
Expand Down

0 comments on commit 5cca9eb

Please sign in to comment.