-
Notifications
You must be signed in to change notification settings - Fork 6
No-op code & docs cleanups #245
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
No-op code & docs cleanups #245
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## devel #245 +/- ##
==========================================
- Coverage 72.94% 72.39% -0.56%
==========================================
Files 50 53 +3
Lines 2218 2210 -8
==========================================
- Hits 1618 1600 -18
- Misses 600 610 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I've rebased the PR after the #253 got merged. @Maximilian-Stefan-Ernst I have also noticed that you have implemented #246. So I have added commits that revert #246 in this PR, but also updated the optimization documentation to be in sync with the actual opt. engine API:
Please let me know if you have any concerns regarding these changes, I will be happy to address them. |
|
@Maximilian-Stefan-Ernst @brandmaier @aaronpeikert In the recent months the merging of some of the changes from my staging branch (PR #193) into the main branch was dormant. But I would be still interested in it, if you think it will be beneficial for the SEM.jl. I mention it, because I see there are new issues/PRs, which could at least partially be addressed in PR #193. Thank you! |
|
The FormatCheck action updates were extracted to PR #296. |
|
Thanks a lot! I merged #296 - is this PR ready for review, or is there anything else you would like to add before? |
also remove unused _symbolic fields
|
@Maximilian-Stefan-Ernst Thank you! I've just rebased this branch to the latest devel, but somehow GitHub does not pick up the |
|
Alright, I'll review - I will also try to remind myself why I made the changes related to package extensions and write something about it. W.r.t. the FormatCheck action - I believe changes to workflows only take effect once they are merged into main - I added the changes to main now, so it should pick up. |
|
Okay, w.r.t. the package extensions: I believe the problem was that there was no way to access types defined in extensions at the time. This seems to be fixed now, but it is still cumbersome (https://discourse.julialang.org/t/having-trouble-using-types-defined-in-extension-modules/97260): using StructuralEquationModels, NLopt
?SemOptimizerNLopt
Couldn't find SemOptimizerNLopt
Perhaps you meant SemOptimizerEmpty
No documentation found.
Binding SemOptimizerNLopt does not exist.
m = Base.get_extension(StructuralEquationModels, :SEMNLOptExt)
?m.SemOptimizerNLoptSo out of the box, this leads to some problems - without explicitely using So I thought the main objective of having extensions is to avoid unnecessary dependencies - therefore I moved the types that are defined to the main package, so they are accessible, and their definition does not depend on the dependencies. Definitions of new methods, however, remained in the extension because they actually depend on additonal packages. However, I really like your changes to the documentation, and the improved syntax for defining constraints, and I would definitely keep those. I am also happy with reverting the changes and moving the types back to the extension, the only thing we would need to fix is the accessibility of the documentation. I also pushed these changes to another branch because I did not manage to manually trigger the documentation build workflow on this PR, but it is now here (https://github.com/StructuralEquationModels/StructuralEquationModels.jl/actions/runs/21357427498/job/61468060053) and it also seems to have the issue of accessing the documentation of types defined in extensions. So the only thing I can think of atm would be to move the documentation of all extensions to |
|
@Maximilian-Stefan-Ernst I've just pushed commits that address the doc issue for
Let me know what you think about this approach. |
|
@Maximilian-Stefan-Ernst Sorry for the noise -- because the extended of SemOptimizer changes grew, I have moved them out of this PR into #299 to keep this one easier for review. |
|
I'm not sure why format check fails and generates a lot of noisy suggestions -- when I run it locally there's no issues. |
|
Thanks a lot for these great changes! I'll merge and then review #299. |
9da45e4
into
StructuralEquationModels:devel
These are rather trivial commits cherry-picked from #193 that don't change anything essential, but once they are in, it should be easier to manage the rest.
The changes are:
usingdirectives from the individual unit test .jl files to the parent .jl fileRAMSymbolicrenamexxx_functiontoxxx_eval!as that better follows Julia naming conventions and should make the code a bit more readable (and shorter)This is a bit less trivial set of changes than the rest, but in the end it does not really change how the functions are calculated.
Except for switching p-values calculation to use
ccdf(x)instead of1 - cdf(x)-- this could potentially give more precise results for p-values close to 0.