From 9178d1edf3c7d370904bd9182520dac886ec195b Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Wed, 4 Jun 2025 17:18:44 +1000 Subject: [PATCH] adding n_elements to surfe --- LoopStructural/interpolators/_surfe_wrapper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LoopStructural/interpolators/_surfe_wrapper.py b/LoopStructural/interpolators/_surfe_wrapper.py index 6ebc1bcf..4784434a 100644 --- a/LoopStructural/interpolators/_surfe_wrapper.py +++ b/LoopStructural/interpolators/_surfe_wrapper.py @@ -205,3 +205,6 @@ def evaluate_gradient(self, evaluation_points): @property def nx(self): return self.get_data_locations().shape[0] + @property + def n_elements(self)->int: + return self.get_data_locations().shape[0] \ No newline at end of file