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

Add face/center_space #2103

Merged
merged 1 commit into from
Dec 22, 2024
Merged

Add face/center_space #2103

merged 1 commit into from
Dec 22, 2024

Conversation

Sbozzolo
Copy link
Member

As I started using the CommonSpaces, I realized that specifying the staggering was a pain point. It required importing Grids, and I pretty much always wanted to build CenterSpaces anyways. In addition to this, I realized that going from center to faces and viceversa was not trivial. This required carrying around both the center and the face space when only one is really needed. In this commit, I add a default staggering to CommonSpaces and a function to go from center to face spaces and back.

@Sbozzolo Sbozzolo force-pushed the gb/staggering_ergonomics branch from 5f44644 to 551e142 Compare December 16, 2024 16:59
Copy link
Member

@charleskawczynski charleskawczynski left a comment

Choose a reason for hiding this comment

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

Overall, I like the idea of having simple convenience adaptors between cell cell center and cell face spaces, but I think adding defaults for the common space constructors should be reverted.

@Sbozzolo Sbozzolo force-pushed the gb/staggering_ergonomics branch 3 times, most recently from 7aa95aa to 6a5d5a6 Compare December 19, 2024 16:00
As I started using the `CommonSpaces`, I realized that specifying the
staggering was a pain point. It required importing `Grids`, and I pretty
much always wanted to build CenterSpaces anyways. In addition to this, I
realized that going from center to faces and viceversa was not trivial.
This required carrying around both the center and the face space when
only one is really needed. In this commit, I reexport the staggering in
`CommonSpaces` and a function to go from center to face spaces and back.
@charleskawczynski charleskawczynski merged commit c810e9c into main Dec 22, 2024
2 of 3 checks passed
@charleskawczynski charleskawczynski deleted the gb/staggering_ergonomics branch December 22, 2024 00:32
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