-
Notifications
You must be signed in to change notification settings - Fork 0
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
(JOSS) Bug when running Example in the documentation #111
Comments
@fb456 Thank you. I believe this has been fixed now. Please feel free to test any of the code in the documentation. There was an issue with the documentation not updating that has now been resolved. |
I encountered the same error regarding |
@SotaYoshida @fb456 It was an issue with code in the optimization wrapper and calculated the upper and lower bounds for some parameters. The package had originally had Jm instead of J_m. I just released a new version which should have fixed the issue. I had been testing on the dev branch instead of the release. If you update the package, you should received the fix. |
@cfarm6 The problem is still not resolved. By the way, I suggest that the sample code be included in the test code and passed to CI. |
@SotaYoshida can you provide the output of The example code is being moved into the CI shortly. |
Yes. (Hyperelastics) pkg> status
Project Hyperelastics v0.1.2
Status `~/Downloads/Hyperelastics.jl-main/Project.toml`
[47edcb42] ADTypes v0.2.6
[b0b7db55] ComponentArrays v0.15.8
[3a778109] ContinuumMechanicsBase v0.1.1
[82cc6244] DataInterpolations v4.6.0
[ffbed154] DocStringExtensions v0.9.3
[de52edbc] Integrals v4.1.0
[b82787f2] InverseLangevinApproximations v0.2.0
[2ee39098] LabelledArrays v1.15.1
[30fc2ffe] LossFunctions v0.11.1
⌃ [36348300] OptimizationOptimJL v0.1.14
[65ce6f38] PackageExtensionCompat v1.0.2
[1fd47b50] QuadGK v2.9.4
⌅ [731186ca] RecursiveArrayTools v3.3.3
[189a3867] Reexport v1.2.2
⌃ [0bca4576] SciMLBase v2.15.2
[276daf66] SpecialFunctions v2.3.1
[09ab397b] StructArrays v0.6.17
[37e2e46d] LinearAlgebra
[10745b16] Statistics v1.9.0 In |
@SotaYoshida I have checked that they are unified in the latest release. The docs are generating and running the code without error. Can you try creating a clean environment with the latest version to see if the error persists? |
I confirm that I was able to run the example code without any errors using the latest release, in a clean environment. |
@fb456 Thank you. @SotaYoshida Can you try the latest release in a clean environment? I think the issue should be resolved now. |
@cfarm6 Yes. I succeeded to run the example code in the doc with a clean environment. |
When trying to run this part of the Example in the docs:
I get the following error that arises from the Gent model:
Changing "Jₘ" to "J_m" above hasn't helped for this. In either case, I think the issue arises from trying to access a named tuple like this in the HyperelasticsOptimizationExt.jl file:
The rest of the example runs fine when I remove the Gent model from the code.
The text was updated successfully, but these errors were encountered: