Fix handling of include-paths in compiler options.#689
Fix handling of include-paths in compiler options.#689WardBrian merged 1 commit intostan-dev:developfrom
include-paths in compiler options.#689Conversation
This is interesting, I can see it going either way (after all, if you pass these arguments to the constructor they do affect more than just the first compilation). I have recently been wondering what is the use-case for having an uncompiled I think it's worth considering whether we really want to support the ability to call |
That makes sense; I always forget about the |
|
Yeah, if we did make the change I mentioned then there wouldn't be a |
|
Hm, I can't quite figure out why this is failing in CI on macOS (my local environment is also macOS with python 3.10). Any ideas? |
|
I think it's because CmdStan 2.33 just released. If you merge in |
2976d2f to
cf66f6a
Compare
Codecov Report
@@ Coverage Diff @@
## develop #689 +/- ##
===========================================
- Coverage 80.02% 80.02% -0.01%
===========================================
Files 72 72
Lines 10953 10962 +9
===========================================
+ Hits 8765 8772 +7
- Misses 2188 2190 +2 see 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Thanks! |
Submission Checklist
Summary
Including
include-pathsin thestanc_optionspassed to compile currently breaks compilation ifinclude-pathsis a list of paths rather than a string with comma-separated paths. This PR adds conditional handling based on the type.Follow-up question: Calling
compileextendsself._compiler_optionssuch that the call changes the state ofCmdStanModelin addition to compiling the model. Is that intended? My gut feeling would've been that passing instanc_optionswould only affect this one call but not future ones.Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Harvard University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: