Skip to content

Make various packaging changes - #84

Merged
paciorek merged 6 commits into
mainfrom
packaging
Dec 4, 2026
Merged

paciorek merged 6 commits into
mainfrom
packaging

Conversation

@paciorek

@paciorek paciorek commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor
  • Remove unused varStore stuff.
  • Import nCompiler in its entirety to give user access to math/distribution functions (and remove use of nCompiler::).
  • Remove extraneous exports that were present for testing.
  • Remove nimbleModel and nCompiler namespace operators in tests.
  • Add some needed imports.
  • Add exports needed for nimble2.
  • Replace messageIfVerbose and warning with nMessage.
  • Replace is.rcf with use of inherits(x, nFunction).
  • Remove unused getType().
  • Remove all uses/references to nimX functions.

The full import of nCompiler is worth a note. This seems to allow the various math/distribution functions to be found when used in a model, though I am confused why that works, given the user's model is in the global environment. I guess it has something to do with how calc_one is set up.

Also note that I left various uses of nCompiler:: even though they aren't needed anymore. I thought it would be helpful in the case of use of more obscure nCompiler functions. I did not keep nCompiler:: for a few obvious things like nCompile, nFunction, etc.

- Remove unused `varStore` stuff.
- Import nCompiler in its entirety to give user access to
math/distribution functions (and remove use on nCompiler::).
- Remove extraneous exports that were present for testing.
- Remove nimbleModel and nCompiler namespace operators in tests.
- Add some needed imports.
- Add exports needed for nimble2.
- Replace `messageIfVerbose` and `warning` with `nMessage`.
- Replace `is.rcf` with use of `inherits(x, nFunction)`.
- Remove unused `getType()`.
- Remove all uses/references to `nimX` functions.
@perrydv

perrydv commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

This is a lot of details but I'd say just go ahead. Have you checked if this will break an nimble2 tests? From nimble2 you can manually choose the nimbleModel branch to use, so you can test on this branch. I'm wondering if removing the nimX functions will break anything or if they are already moved to nimble2.

@paciorek

paciorek commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

I also have a packaging branch on nimble2 that is only somewhat related to this, but I think I want to target merging both this and that in at the same time, as I am now verifying locally that when both are done, tests on both packages pass.

I believe I checked that removing nimX stuff is ok. If something pops up, we can deal with it when it does.

@paciorek
paciorek merged commit 4931866 into main Dec 4, 2026
0 of 4 checks passed
@paciorek
paciorek deleted the packaging branch December 4, 2026 16:48
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.

2 participants