Skip to content

Have get_charge_array fail when virtual sites are present#1255

Merged
mattwthompson merged 2 commits intomainfrom
fix-1254
Jul 10, 2025
Merged

Have get_charge_array fail when virtual sites are present#1255
mattwthompson merged 2 commits intomainfrom
fix-1254

Conversation

@mattwthompson
Copy link
Member

Description

Fixes #1254

Checklist

  • Add tests
  • Lint
  • Update docstrings

@codecov
Copy link

codecov bot commented Jul 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.85%. Comparing base (8af3799) to head (b20cd22).
⚠️ Report is 66 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1255   +/-   ##
=======================================
  Coverage   93.85%   93.85%           
=======================================
  Files          72       72           
  Lines        6232     6233    +1     
=======================================
+ Hits         5849     5850    +1     
  Misses        383      383           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

if include_virtual_sites:
raise NotImplementedError("Not yet implemented with virtual sites")

if VirtualSiteKey in {type(key) for key in self.key_map}:
Copy link
Member Author

Choose a reason for hiding this comment

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

This level of the object hierarchy doesn't "know" about what's in a VirtualSiteHandler, if there is one present, but I don't think there's a way for virtual sites to meaningfully have charges without this key

@mattwthompson mattwthompson marked this pull request as ready for review July 9, 2025 20:47
@mattwthompson mattwthompson added this to the 0.4.3 milestone Jul 9, 2025
@mattwthompson mattwthompson merged commit 2011dcc into main Jul 10, 2025
16 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.

get_charges_array fails when vsites are present at all

2 participants