Skip to content

Rstat2M raises a truncnorm error  #6

@alexteachey

Description

@alexteachey

An indexing exception is encountered when calling Rstat2M with default grid_size and sample_size. The error arises from truncnorm, and may be distribution dependent. Notably, the exception is not raised in the mirror image function Mstat2R.

The solution is to make sure grid_size and sample_size are integers, not floats. In the code you'll note that Mstat2R uses grid_size=1000, whereas in Rstat2M uses grid_size=1e3. The best solution would be to manually alter the code so that this exception is never encountered. Alternatively, the user must be sure to specify values for these keywords.

Presumably this wasn't a problem when the code was published, but it is now (at least for me).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions