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

Update MTK #338

Merged
merged 5 commits into from
Oct 19, 2024
Merged

Update MTK #338

merged 5 commits into from
Oct 19, 2024

Conversation

SebastianM-C
Copy link
Contributor

Updates for the new initialization system in [email protected].
If the extra u0s are provided, they lead to initialization failures.

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

Since DataInterpolations is only a test dep, we seem to hit
an edgecase in CompatHelper and this was holding back MTK.
with newer versions of MTK we no longer need to provides these,
as initialization can find the appropriate initial conditions.
If the extra u0s are provided, they lead to initialization failures.
@SebastianM-C
Copy link
Contributor Author

@baggepinnen Do you know what could cause the test failure in the PositionSensor & ForceSensor test?

@baggepinnen
Copy link
Contributor

The Translational library uses the velocity connectors that Brad implemented, they require careful initialization of the position of every component since connectors do not carry position information. I would thus guess that the failures are due to some problem with initialization since at least one test is failing a position check.

I would favor us getting rid of this sub-library altogether, but that's a separate issue :)

@ChrisRackauckas
Copy link
Member

Yeah that test is really bad. It is both overdetermined in the sense of having too many initial conditions, and underdetermined in the sense that it does not even specify the right ones. So everything is fine there, it's just the test is testing for something that isn't necessarily true: it's effectively underdetermined so there are infinitely many initial conditions that satsify the constraints the ones that you choose will change the result. That is a really bad test.

The Translational library uses the velocity connectors that Brad implemented, they require careful initialization of the position of every component since connectors do not carry position information. I would thus guess that the failures are due to some problem with initialization since at least one test is failing a position check.

I would favor us getting rid of this sub-library altogether, but that's a separate issue :)

We should just delete it. Indeed this is an issue of not actually specifying position.

@ChrisRackauckas ChrisRackauckas merged commit f5f5885 into SciML:main Oct 19, 2024
10 of 12 checks passed
@SebastianM-C SebastianM-C deleted the smc/update branch October 19, 2024 22:43
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.

3 participants