Skip to content

TypeError in step 3 #3

@tomasvdb

Description

@tomasvdb

in step 3: Summary of the possible designs, if/when there are no suitable designs (e.g. if budget too low, time period too long, etc.. ) the code returns a type error. Perhaps a more descriptive error message would be helpful.

TypeError Traceback (most recent call last)
in
6 matched_designs = MMclass.exhaustive_search()
7 else:
----> 8 matched_designs = MMclass.greedy_search()
9
10 if len(matched_designs) == 0:

1 frames
/usr/local/lib/python3.8/dist-packages/matched_markets/methodology/tbrmmscore.py in score(self)
87 if self._score is None:
88 self._score = Scoring(
---> 89 int(self.diag.corr_test), int(self.diag.aatest.test_ok),
90 int(self.diag.bbtest.test_ok), int(self.diag.dwtest.test_ok),
91 round(self.diag.corr, 2), 1 / self.diag.required_impact)

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

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