Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update array write #18

Merged
merged 6 commits into from
Jul 31, 2024
Merged

Update array write #18

merged 6 commits into from
Jul 31, 2024

Conversation

mjreno
Copy link
Contributor

@mjreno mjreno commented Jul 31, 2024

No description provided.

@mjreno mjreno marked this pull request as draft July 31, 2024 12:26
@mjreno mjreno marked this pull request as ready for review July 31, 2024 17:25
@mjreno mjreno requested a review from wpbonelli July 31, 2024 17:39
" ".join(str(x) for x in y) for y in values[i]
)
v += f"\n{PAD*3}"
lines = f"{PAD*2}" + f"{MFArrayType.to_string(mfa._how)}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these f-strings could be merged into 1 and likewise below

flopy4/array.py Outdated
@@ -203,6 +203,7 @@ def __init__(
tagged=False,
reader=MFReader.urword,
default_value=None,
extpath=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo this could be public, an attr or property of type Optional[Path] that has a value if the array is external otherwise None? I'd also vote to call it path

@mjreno mjreno merged commit ce20324 into modflowpy:develop Jul 31, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants