Commit f62dfe5
authored
[CLN] Refactor grid selection logic by using active state checks (#1062)
# Description
Refactored the `regular_grid` method to use the previously defined boolean variables `dense_grid_exists_and_active` and `octree_grid_exists_and_active` for consistency and improved readability, instead of directly checking if the grid objects are not None.
Relates to #grid-refactoring
# Checklist
- [ ] My code uses type hinting for function and method arguments and return values.
- [ ] I have created tests which cover my code.
- [ ] The test code either 1. demonstrates at least one valuable use case (e.g. integration tests)
or 2. verifies that outputs are as expected for given inputs (e.g. unit tests).
- [ ] New tests pass locally with my changes.1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
0 commit comments