File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -284,17 +284,17 @@ def _first_rprofs(self) -> step.RprofsInstant:
284284 first_step = next (iter (self ._steps_with_rprofs ))
285285 return first_step .rprofs
286286
287- @property
287+ @cached_property
288288 @override
289289 def centers (self ) -> NDArray [np .float64 ]:
290290 return self ._first_rprofs .centers
291291
292- @property
292+ @cached_property
293293 @override
294294 def walls (self ) -> NDArray [np .float64 ]:
295295 return self ._first_rprofs .walls
296296
297- @property
297+ @cached_property
298298 @override
299299 def bounds (self ) -> tuple [float , float ]:
300300 return self ._first_rprofs .bounds
Original file line number Diff line number Diff line change @@ -438,17 +438,17 @@ def __getitem__(self, name: str) -> Rprof: ...
438438 def stepstr (self ) -> str :
439439 """String representation of steps indices."""
440440
441- @property
441+ @cached_property
442442 @abstractmethod
443443 def centers (self ) -> NDArray [np .float64 ]:
444444 """Radial position of cell centers."""
445445
446- @property
446+ @cached_property
447447 @abstractmethod
448448 def walls (self ) -> NDArray [np .float64 ]:
449449 """Radial position of cell walls."""
450450
451- @property
451+ @cached_property
452452 @abstractmethod
453453 def bounds (self ) -> tuple [float , float ]:
454454 """Radial or vertical position of boundaries.
You can’t perform that action at this time.
0 commit comments