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

KSpace definition #71

Merged
merged 16 commits into from
May 27, 2024
Merged

KSpace definition #71

merged 16 commits into from
May 27, 2024

Conversation

JosePizarro3
Copy link
Collaborator

@ndaelman-hu I would need a quick review on this to be able to keep working on #52

@JosePizarro3 JosePizarro3 requested a review from ndaelman-hu May 16, 2024 12:59
@JosePizarro3 JosePizarro3 self-assigned this May 16, 2024
@JosePizarro3 JosePizarro3 linked an issue May 16, 2024 that may be closed by this pull request
@coveralls
Copy link

coveralls commented May 16, 2024

Pull Request Test Coverage Report for Build 9252888406

Details

  • 113 of 114 (99.12%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 98.489%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tests/conftest.py 24 25 96.0%
Totals Coverage Status
Change from base Build 9191394544: 0.3%
Covered Lines: 717
Relevant Lines: 728

💛 - Coveralls

@JosePizarro3
Copy link
Collaborator Author

JosePizarro3 commented May 21, 2024

Hey @ndaelman-hu there seems to be something off with the resolve_points_and_offset method in KMesh. I think for 'Gamma-centered', the points returned are some weird list. Can you check it? I will push some testing for KMesh and this specific method so you see what is happening.

Copy link
Collaborator

@ndaelman-hu ndaelman-hu left a comment

Choose a reason for hiding this comment

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

still ongoing, intermediate feedback

src/nomad_simulations/numerical_settings.py Outdated Show resolved Hide resolved
src/nomad_simulations/numerical_settings.py Outdated Show resolved Hide resolved
src/nomad_simulations/numerical_settings.py Outdated Show resolved Hide resolved
src/nomad_simulations/numerical_settings.py Outdated Show resolved Hide resolved
src/nomad_simulations/numerical_settings.py Show resolved Hide resolved
src/nomad_simulations/numerical_settings.py Outdated Show resolved Hide resolved
@JosePizarro3
Copy link
Collaborator Author

Ok, @ndaelman-hu this is ready for another review. I added a functionality to extract KMesh.high_symmetry_points from the legacy normalizers

@JosePizarro3 JosePizarro3 force-pushed the 69-kspace-definition branch from d657e14 to a9bdac2 Compare May 22, 2024 12:38
@JosePizarro3
Copy link
Collaborator Author

Ok, this is ready. I decided to group the _check_reciprocal_lattice_vectors and resolve_high_symmetry_points methods into a functionality class, as these are being used for both KMesh and KLinePath. I think this is nice, let me know what you think.

I'd like to merge this today.

@JosePizarro3 JosePizarro3 requested a review from ndaelman-hu May 27, 2024 09:28
@JosePizarro3 JosePizarro3 merged commit 91bbe46 into develop May 27, 2024
4 checks passed
@JosePizarro3 JosePizarro3 deleted the 69-kspace-definition branch May 27, 2024 11:53
class KMesh(Variables):
"""
K-point mesh over which the physical property is calculated. This is used to define `ElectronicEigenvalues(PhysicalProperty)` and
other k-space properties. The `points` are obtained from a refernece to the `NumericalSettings` section, `KMesh(NumericalSettings)`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The points are obtained from a refernece to the NumericalSettings section

Typo in reference

Copy link
Collaborator

@ndaelman-hu ndaelman-hu left a comment

Choose a reason for hiding this comment

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

Saw you just merged this, so finished the review pre-emptively.

Comment on lines +166 to +172
k_mesh_settings_ref = Quantity(
type=KMeshSettings,
description="""
Reference to the `KMesh(NumericalSettings)` section in the `ModelMethod` section. This reference is useful
to extract `points` and, then, obtain the shape of `value` of the `PhysicalProperty`.
""",
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The description is a bit weirdly phrased towards the end.

Comment on lines +174 to +179
points = Quantity(
type=KMeshSettings.points,
description="""
Reference to the `KMesh.points` over which the physical property is calculated. These are 3D arrays stored in fractional coordinates.
""",
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Given the description in k_mesh_settings_ref, is this quantity really helpful?
I mean, now there are 2 ways of retrieving exactly the same property.

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.

KSpace definition
3 participants