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

LieAlgebras: more optimizations regarding type stability #4145

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

lgoettgens
Copy link
Member

No description provided.

@lgoettgens lgoettgens added topic: LieAlgebras experimental Only changes experimental parts of the code labels Sep 24, 2024
@lgoettgens lgoettgens force-pushed the lg/Lie-optim branch 2 times, most recently from 90cbfa3 to 01ddde4 Compare September 25, 2024 12:43
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.66%. Comparing base (6238fc7) to head (01ddde4).
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4145   +/-   ##
=======================================
  Coverage   84.65%   84.66%           
=======================================
  Files         626      626           
  Lines       84316    84320    +4     
=======================================
+ Hits        71380    71386    +6     
+ Misses      12936    12934    -2     
Files with missing lines Coverage Δ
experimental/LieAlgebras/src/LieAlgebraModule.jl 90.67% <100.00%> (ø)
...xperimental/LieAlgebras/src/LieAlgebraModuleHom.jl 80.70% <ø> (ø)
experimental/LieAlgebras/src/Types.jl 98.22% <100.00%> (+1.18%) ⬆️
experimental/LieAlgebras/test/setup_tests.jl 95.40% <100.00%> (+0.09%) ⬆️

... and 2 files with indirect coverage changes

@lgoettgens lgoettgens marked this pull request as ready for review September 25, 2024 14:15
Comment on lines +7 to +11
if !isdefined(Main, :mrdi_schema)
mrdi_schema = Schema(JSON.parsefile(joinpath(Oscar.oscardir, "data", "schema.json")))
end

if !isdefined(Main, :test_save_load_roundtrip) || isinteractive()
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be an unrelated change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, this should have been included in #4065, but I forgot it somehow.

Without this change, running Oscar.test_experimental_module("LieAlgebras") from the REPL parses the schema multiple times, including some network request and some logging.

@lgoettgens lgoettgens merged commit 46abff7 into oscar-system:master Sep 26, 2024
28 checks passed
@lgoettgens lgoettgens deleted the lg/Lie-optim branch September 26, 2024 21:16
HechtiDerLachs pushed a commit to HechtiDerLachs/Oscar.jl that referenced this pull request Sep 30, 2024
…m#4145)

* Add second type param to `LieAlgebraModule`

* Make more tests `@inferred`

* Reduce test output spam

* Another type annotation fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental Only changes experimental parts of the code topic: LieAlgebras
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants