Skip to content

unit tests for threshold pricing model lead to error #184

@bayareacoder

Description

@bayareacoder

First off, fantastic library!

I think I found an issue though in the pricing/telegraph.py file. The function estimate_telegraph_parameters raises a DecimalError if called with a threshold=0 parameter. But the telegraph function does exactly that when it is called with a None parameter on either lambda_up or lamba_down and this is what the unit test test_telegraph_with_estimated_parameters does so I don't see how this can pass the unit tests.

Also what is the article or book reference for this telegraph pricing model?

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