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

Crystal environment with continuous lattice parameters #221

Merged
merged 198 commits into from
Nov 20, 2023

Conversation

alexhernandezgarcia
Copy link
Owner

@alexhernandezgarcia alexhernandezgarcia commented Sep 23, 2023

alexhernandezgarcia and others added 30 commits September 15, 2023 20:51
…ns, logprobs of increments and log of the diagonal of the Jacobian.
…d the comparisons with the source by taking into account the effective dimensions only.
Co-authored-by: Michał Koziarski <michal.koziarski@gmail.com>
the underlying environments, which should lead to every padded action being
unique.
"""
return -(self.value + 2)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure about having this method here. It makes Stage (who's purpose is simply to represent the different possible stages) dependant on the internal logic of the crystal class, creating unnecessary coupling

Copy link
Collaborator

Choose a reason for hiding this comment

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

(same for the from_pad() method)

"""
if self.value - 1 < 0:
return Stage.DONE
return Stage(self.value - 1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure that these methods next() and prev() should exist here given that we want eventually the option to sample space groups first. The logic should probably be at the level of the crystal/ccrystal classes.
Btw, this is how I did it in #199 to allow the two different stage orderings to coexist. I we change this implementation to methods in the crystal class, we could do the change in a way compatible with that PR.

@carriepl carriepl mentioned this pull request Oct 24, 2023
@carriepl carriepl marked this pull request as ready for review November 16, 2023 20:09
@alexhernandezgarcia alexhernandezgarcia merged commit 6145a2a into main Nov 20, 2023
1 check passed
@josephdviviano josephdviviano deleted the ccrystal branch February 7, 2024 15:44
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.

5 participants