Skip to content

Comments

Fix invalid python imports in pytests#1455

Open
avivajpeyi wants to merge 3 commits intodevfrom
fix_invalid_python_imports
Open

Fix invalid python imports in pytests#1455
avivajpeyi wants to merge 3 commits intodevfrom
fix_invalid_python_imports

Conversation

@avivajpeyi
Copy link
Collaborator

@avivajpeyi avivajpeyi commented Feb 18, 2026

Close #1454

  1. Fixed pytest import errors by removing from py_tests... style imports.
  2. Replaced silent cosmic-integration import fallbacks with a clear setup error message (install with -e . / -e '.[dev]').
  3. Made mass-range handling work for tiny test datasets and aligned DCO naming (BHBH).

@avivajpeyi avivajpeyi marked this pull request as draft February 18, 2026 03:54
@github-actions
Copy link

✅ COMPAS Build Successful!

Item Value
Commit 28c01b7
Logs View workflow

Detailed Evolution Plot

Click to view evolution plot


Generated by COMPAS CI

@github-actions
Copy link

✅ COMPAS Build Successful!

Item Value
Commit 0f76ac0
Logs View workflow

Detailed Evolution Plot

Click to view evolution plot


Generated by COMPAS CI

@avivajpeyi avivajpeyi marked this pull request as ready for review February 18, 2026 04:52
Copy link
Collaborator

@LiekeVanSon LiekeVanSon left a comment

Choose a reason for hiding this comment

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

Looks good to me! Note sure, but I might have been to blame introducing this in the latest update to the CosmicIntegration scripts, if so, sorry, but thanks for cleaning this up!

Related: do we maybe want a changelog for the python scripts as well? (this might help prevent such incidents in the future)

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.

Python import path / working-directory issue in conftest.py in py_test ?-> maybe GitHub check do not complete due to this

2 participants