Closed yumengch closed 3 years ago
Do you know why the tests failed? I guess it might be a nan
failing. In this case, since a __post_init__
becomes necessary, I think we might just drop the dataclass
.
Do you know why the tests failed? I guess it might be a nan failing. In this case, since a __post_init__ becomes necessary, I think we might just drop the dataclass.
Yes. I was overconfident as I thought it is a straightforward change.
Also, as I the test_data
needs to be adapt due to structure change, if you reopen the pull request, all tests should be able to be passed (as I tested on my local repo).
Guess setter is not sufficient to ensure positive
prec
.I also added a
__post_init__
function.