Skip to content

Commit

Permalink
Fix package import issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
asnelt committed Dec 10, 2018
1 parent 84cd513 commit 10a0c98
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ To fit a mixed vine to the samples:

.. code-block:: python
from mixedvine import MixedVine
from mixedvines.mixedvine import MixedVine
vine = MixedVine.fit(samples, is_continuous)
``vine`` is now a ``MixedVine`` object. To draw samples from the distribution,
Expand Down Expand Up @@ -158,7 +158,7 @@ References
License
-------

Copyright (C) 2017 Arno Onken
Copyright (C) 2017, 2018 Arno Onken

This file is part of the mixedvines package.

Expand Down
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ def __getattr__(cls, name):

# General information about the project.
project = u'mixedvines'
copyright = u'2017, Arno Onken'
copyright = u'2017, 2018 Arno Onken'
author = u'Arno Onken'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u'1.0'
version = u'1.2'
# The full version, including alpha/beta/rc tags.
release = u'1.0'
release = u'1.2.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -152,7 +152,7 @@ def __getattr__(cls, name):
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
# html_title = u'mixedvines v1.0'
# html_title = u'mixedvines v1.2.0'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To fit a mixed vine to the samples:

.. code-block:: python
from mixedvine import MixedVine
from mixedvines.mixedvine import MixedVine
vine = MixedVine.fit(samples, is_continuous)
``vine`` is now a ``MixedVine`` object. Note that for the canonical vine, the
Expand Down
7 changes: 6 additions & 1 deletion mixedvines/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2017 Arno Onken
# Copyright (C) 2017, 2018 Arno Onken
#
# This file is part of the mixedvines package.
#
Expand All @@ -14,3 +14,8 @@
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from . import marginal
from . import copula
from . import mixedvine
from .mixedvine import MixedVine
7 changes: 4 additions & 3 deletions mixedvines/mixedvine.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Arno Onken
# Copyright (C) 2017, 2018 Arno Onken
#
# This file is part of the mixedvines package.
#
Expand All @@ -18,12 +18,13 @@
'''
This module implements a copula vine model with mixed marginals.
'''
from __future__ import absolute_import
from __future__ import division
from scipy.stats import norm, kendalltau
from scipy.optimize import minimize
import numpy as np
from mixedvines.marginal import Marginal
from mixedvines.copula import Copula, IndependenceCopula
from .marginal import Marginal
from .copula import Copula, IndependenceCopula


class MixedVine(object):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2017 Arno Onken
# Copyright (C) 2017, 2018 Arno Onken
#
# This file is part of the mixedvines package.
#
Expand All @@ -21,7 +21,7 @@

setup(
name="mixedvines",
version="1.1",
version="1.2.0",
description=("Package for canonical vine copula trees with mixed"
" continuous and discrete marginals."),
long_description=open('README.rst').read(),
Expand Down

0 comments on commit 10a0c98

Please sign in to comment.