Skip to content

Make various packaging changes - #84

Open
paciorek wants to merge 4 commits into
mainfrom
packaging
Open

paciorek wants to merge 4 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.

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