Commit b735969
authored
update coords after shift_orig_zero (#803)
Hi,
I think this part of the code was attempting to modify local variables
(`ii`) rather than the actual array elements in `self.data["coords"]`.
Before:
```
@post_funcs.register("shift_orig_zero")
def _shift_orig_zero(self):
for ff in self.data["coords"]:
for ii in ff:
ii = ii - self.data["orig"]
...
```
After:
```
...
self.data["coords"] = self.data["coords"] - self.data["orig"]
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Refactor**
- Enhanced the efficiency of coordinate adjustments for improved
performance on larger datasets.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: .Del <[email protected]>1 parent 0679ee2 commit b735969
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
714 | | - | |
715 | | - | |
| 713 | + | |
716 | 714 | | |
717 | 715 | | |
718 | 716 | | |
| |||
0 commit comments