Skip to content

Conversation

@cattabiani
Copy link
Contributor

@cattabiani cattabiani commented Aug 20, 2025

Context

Following openbraininstitute/sonata-extension#9 we need to add this functionality to libsonata. Here we are... with tests!

  • node_set or compartment_set are necessary in InputBase. Both throw an error

Smaller Changes:

  • the cpp test for missing amp_start was failing with a SonataError but not because it was missing amp_start. In fact spike_replay has been removed and this test was not updated. I added a more strict version of this test.

@cattabiani cattabiani self-assigned this Aug 20, 2025
@cattabiani
Copy link
Contributor Author

Since Mike is away I need to ask other people for review :D

@cattabiani cattabiani changed the title test CI compartment_set in BaseInput object Aug 20, 2025
@cattabiani cattabiani marked this pull request as ready for review August 20, 2025 15:13
})";
CHECK_THROWS_WITH(
SimulationConfig(contents, "./"),
Catch::Matchers::Contains("node_set") &&
Copy link

Choose a reason for hiding this comment

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

should we use Catch::Matchers::AllOf(...) here instead of &&?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we are still useing catch2 v2. It does not have AllOf

@cattabiani cattabiani requested a review from ilkilic August 20, 2025 17:28
@coveralls
Copy link

Pull Request Test Coverage Report for Build 17105736473

Details

  • 8 of 8 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 92.697%

Totals Coverage Status
Change from base Build 15906181439: 0.003%
Covered Lines: 2361
Relevant Lines: 2547

💛 - Coveralls

Copy link

@ilkilic ilkilic left a comment

Choose a reason for hiding this comment

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

Thank you @cattabiani , looks good to me

@cattabiani cattabiani merged commit 8a1d046 into master Aug 21, 2025
23 checks passed
@cattabiani cattabiani deleted the katta/compartment_set_input branch August 21, 2025 08:30
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.

4 participants