Skip to content

Commit

Permalink
Bugfix, ordering of if and elif in O_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
justanothergithubber committed Feb 15, 2019
1 parent ab66050 commit 671be3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name="mdmpy",
version="0.0.15.13",
version="0.0.15.14",
author="mdmpy Authors",
author_email="mdmpyatgithub@gmail.com",
description="A package that implements Marginal Distribution Models (MDMs)",
Expand Down
6 changes: 3 additions & 3 deletions src/mdmpy/mdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ def _alpha_cons(model, k):
###### ... distributions with suitable unbounded regions
###### ... satisfying tail convex+tail logconcave
if heteroscedastic:
if self._cdf == util.exp_cdf:
O_expr = self.__loglikexpr(heteroscedastic=True, lag_f=lambda arg: -arg)
elif self._cdf == util.exp_cdf and use_ASCs:
if self._cdf == util.exp_cdf and use_ASCs:
O_expr = self.__loglikexpr(heteroscedastic=True, ASC=True, lag_f=lambda arg: -arg)
elif self._cdf == util.exp_cdf:
O_expr = self.__loglikexpr(heteroscedastic=True, lag_f=lambda arg: -arg)
else:
O_expr = self.__loglikexpr(heteroscedastic=True)

Expand Down

0 comments on commit 671be3b

Please sign in to comment.