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

Hirshfeld Automation #150

Merged
merged 14 commits into from Apr 15, 2024
Merged

Hirshfeld Automation #150

merged 14 commits into from Apr 15, 2024

Conversation

OscarvanVuren
Copy link
Collaborator

A few scripts for automated hirshfeld extraction from FHI-aims.

@OscarvanVuren
Copy link
Collaborator Author

Needs ci tests for the new functionality. This is coming soon

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

Attention: Patch coverage is 97.33333% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 88.44%. Comparing base (6daf5ba) to head (2deef69).

Files Patch % Lines
carmm/analyse/hirshfeld.py 96.36% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
+ Coverage   88.23%   88.44%   +0.20%     
==========================================
  Files          80       82       +2     
  Lines        3265     3340      +75     
==========================================
+ Hits         2881     2954      +73     
- Misses        384      386       +2     
Flag Coverage Δ
unittests 88.44% <97.33%> (+0.20%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@GaryLZW GaryLZW left a comment

Choose a reason for hiding this comment

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

I left some minor comments. This looks fine to me.

carmm/analyse/hirshfeld.py Show resolved Hide resolved
examples/analyse_hirshfeld.py Show resolved Hide resolved


def write_hirshfeld(text, natoms, start, outname):

Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be nice if you could write a docstring for this function. I got confused about the 'start' argument.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Its an internal function that shouldn't really be seen by a user, but I agree that it is currently opaque

@OscarvanVuren OscarvanVuren merged commit 001ce56 into logsdail:main Apr 15, 2024
4 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.

None yet

3 participants