Skip to content

Commit

Permalink
clean namespace and add missing element to api
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia committed Aug 10, 2024
1 parent 4804020 commit a56b097
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
13 changes: 13 additions & 0 deletions docs/api_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,25 @@ This reference provides detailed documentation for user functions in the current
:members:


:mod:`preliz.multidimensional`
======================================

.. automodule:: preliz.multidimensional
:members:


:mod:`preliz.predictive`
======================================

.. automodule:: preliz.predictive
:members:

:mod:`preliz.ppls`
======================================

.. automodule:: preliz.ppls
:members:

:mod:`preliz.distributions.continuous`
======================================

Expand Down
6 changes: 4 additions & 2 deletions preliz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
from .predictive import *
from .ppls import *
from .unidimensional import *
from .multidimensional import *


__all__ = ["maxent", "mle", "ppa", "roulette", "quartile"]

__version__ = "0.8.1"

_log = logging.getLogger("preliz")
Expand All @@ -36,3 +35,6 @@
_preliz_style_path = os_path.join(os_path.dirname(__file__), "styles")
style.core.USER_LIBRARY_PATHS.append(_preliz_style_path)
style.core.reload_library()

# clean namespace
del handler, logging, os_path, rcParams, _preliz_style_path, _log
3 changes: 3 additions & 0 deletions preliz/multidimensional/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .dirichlet_mode import dirichlet_mode

__all__ = ["dirichlet_mode"]
File renamed without changes.
3 changes: 1 addition & 2 deletions preliz/unidimensional/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
from .quartile import quartile
from .quartile_int import quartile_int
from .roulette import roulette
from .dirichlet_mode import dirichlet_mode

__all__ = ["beta_mode", "maxent", "mle", "roulette", "quartile", "quartile_int", "dirichlet_mode"]
__all__ = ["beta_mode", "maxent", "mle", "roulette", "quartile", "quartile_int"]

0 comments on commit a56b097

Please sign in to comment.