Skip to content

refactor: miscellaneous#101

Merged
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:cleanup
Jul 4, 2026
Merged

refactor: miscellaneous#101
wpbonelli merged 1 commit into
MODFLOW-ORG:developfrom
wpbonelli:cleanup

Conversation

@wpbonelli

Copy link
Copy Markdown
Member
  • drop _ats_active, derive from self.ats
  • simplify comprehensions, use next(iter(...)) and list(...)
  • move a get_input_var_names() call inside a conditional where it's needed
  • use math.prod instead of a manual accumulator loop
  • simpler logic to exclude interface model and connections

- drop _ats_active in favor of deriving from self.ats
- replace for/else and list-comprehension with next(iter(...)), list(...), and set-comprehension equivalents
- collapse repeated startswith() chains for IM/CON suffixes into a single slice check
- move a get_input_var_names() call inside a conditional where it's needed
- use math.prod instead of a manual accumulator loop
@wpbonelli wpbonelli marked this pull request as ready for review July 4, 2026 17:24
@wpbonelli wpbonelli merged commit 2796799 into MODFLOW-ORG:develop Jul 4, 2026
30 of 34 checks passed
@wpbonelli wpbonelli deleted the cleanup branch July 4, 2026 19:08
@wpbonelli wpbonelli added this to the 0.2.1 milestone Jul 4, 2026
@wpbonelli wpbonelli added the refactor Non-functional changes label Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Non-functional changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant