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

rework dfn -> toml conversion #59

Closed
wants to merge 7 commits into from
Closed

Conversation

wpbonelli
Copy link
Member

@wpbonelli wpbonelli commented Dec 10, 2024

TOML conversion as per group discussions and as prototyped in flopy3 in the Jinja PR.

This is a nested structure where components have blocks, which have variables, which may be composites of other variables, and child relationships are direct, not mediated by children intermediate attributes.

Add the latest DFNs as well as the converted TOML files. (Maybe we shouldn't version these?)

The structure is still tentative and may evolve.

The toml dependency is switched to tomlkit. And add boltons as a dependency.

Also, use the default ruff line length of 88.

We could start consuming the TOML definitions for any further prototyping and also in flopy3 shortly.

@wpbonelli wpbonelli marked this pull request as ready for review December 10, 2024 00:19
Copy link
Contributor

@deltamarnix deltamarnix left a comment

Choose a reason for hiding this comment

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

Could you check the function that drops some keys from the dict?

spec/dfn2toml.py Show resolved Hide resolved
spec/dfn2toml.py Outdated Show resolved Hide resolved
TOML conversion as per group discussions and as prototyped in flopy3 in the Jinja PR.

This is a nested structure where components have blocks, which have variables, which may be composites of other variables.

Add the latest DFNs as well as the converted TOML files.

The structure is still tentative and may evolve.
@wpbonelli
Copy link
Member Author

After discussion I will close this and move it to devtools

@wpbonelli wpbonelli closed this Dec 10, 2024
@wpbonelli
Copy link
Member Author

@wpbonelli wpbonelli deleted the toml branch December 10, 2024 21:49
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