Skip to content

force_compile in CmdStanModel Does Not Work #773

@brucejwittmann

Description

@brucejwittmann

Summary:

Title describes the problem :)

Description:

I believe the problem comes from this line. Shouldn't it read if compile or self._exe_file is None instead of the current if compile and self._exe_file is None? As written, force_compile will only actually force compilation if no exe file is provided, which kind of defeats the point IMO. Changing the "and" to an "or" results in a compilation if force_compile = True OR if force_compile = False and no executable was provided.

Current Version:

The referenced code issue is in the main branch. Probably not helpful, but here's the info for what I'm working with:

INSTALLED VERSIONS

python: 3.12.5 | packaged by conda-forge | (main, Aug 8 2024, 18:36:51) [GCC 12.4.0]
python-bits: 64
OS: Linux
OS-release: 6.5.0-35-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: ('en_US', 'UTF-8')
cmdstan_folder: /home/bwittmann/micromamba/envs/dms_stan/bin/cmdstan
cmdstan: (2, 33)
cmdstanpy: 1.2.4
pandas: 2.2.2
xarray: 2023.6.0
tqdm: 4.66.4
numpy: 1.26.4

' '

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions