Skip to content

Conversation

@mikemhenry
Copy link
Contributor

Checklist

  • Added a news entry

Developers certificate of origin

@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

❌ Patch coverage is 97.93814% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.18%. Comparing base (1b58f03) to head (ae2e68a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/kartograf/atom_mapper.py 97.82% 1 Missing ⚠️
...rtograf/mapping_metrics/metric_shape_difference.py 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
- Coverage   98.23%   98.18%   -0.05%     
==========================================
  Files          14       13       -1     
  Lines         678      661      -17     
==========================================
- Hits          666      649      -17     
  Misses         12       12              

☔ 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.

@mikemhenry mikemhenry requested a review from atravitz January 13, 2026 21:36
Copy link
Contributor

@atravitz atravitz left a comment

Choose a reason for hiding this comment

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

Just a couple things!

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is causing the docs to fail - could you remove this in the docs as well? And add to the 2.0 changelog!

from .metric_shape_difference import (
MappingShapeMismatchScorer as MappingShapeMismatchScorer,
)
from .metric_shape_difference import (
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above, I (subjectively) prefer the prior formatting.

Copy link
Contributor

Choose a reason for hiding this comment

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

not sure if this changed or my opinion changed, but i'm fine with this now 😄

beta = 1000 / (const.k * const.Avogadro * T)
V = k_hook * (rmsd - accepted_distance_rmsd)
p = np.exp(-beta * V) if (np.exp(-beta * V) < 1) else 1
p = min(1, np.exp(-beta * V))
Copy link
Contributor

Choose a reason for hiding this comment

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

🚀

@mikemhenry
Copy link
Contributor Author

Looks like changes in OpenFreeEnergy/openfe-benchmarks@23f2c94 are causing an issue, not sure why pinning the commit hash didn't fix it

@mikemhenry mikemhenry requested a review from atravitz February 9, 2026 19:47
Copy link
Contributor

@atravitz atravitz left a comment

Choose a reason for hiding this comment

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

lgtm!

from .metric_shape_difference import (
MappingShapeMismatchScorer as MappingShapeMismatchScorer,
)
from .metric_shape_difference import (
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure if this changed or my opinion changed, but i'm fine with this now 😄


import functools
from typing import Callable
from collections.abc import Callable
Copy link
Contributor

Choose a reason for hiding this comment

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

RIP typing

Comment on lines +57 to 68
"ANN", # type annotations https://pypi.org/project/flake8-annotations/
"E", # pycodestyle errors
"ERA", # find commented-out code https://pypi.org/project/eradicate/
"F", # Pyflakes
"FURB", # A tool for refurbishing and modernizing Python codebases https://github.com/dosisod/refurb
"I", # isort
# "C901", # mccabe complexity TODO: add this back in
"S", # security related lint https://pypi.org/project/flake8-bandit/
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # detect issues using sys to check python version https://pypi.org/project/flake8-2020/
]
Copy link
Contributor

Choose a reason for hiding this comment

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

excited about many of these - I'll add some to konnektor and gufe!

@mikemhenry
Copy link
Contributor Author

we need openfe for testing the notebook, just need to make sure that CI uninstalls the kartograf that gets pulled in

@mikemhenry
Copy link
Contributor Author

 Installing collected packages: kartograf
  Attempting uninstall: kartograf
    Found existing installation: kartograf 1.2.0
    Uninstalling kartograf-1.2.0:
      Successfully uninstalled kartograf-1.2.0
Successfully installed kartograf-0.0.1.dev1+g594abb341

Sweet that works

@github-actions
Copy link

No API break detected ✅

@mikemhenry mikemhenry merged commit e2c9a6a into main Feb 11, 2026
7 of 9 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.

2 participants