Skip to content

Commit 64a16f1

Browse files
committed
fix pep 8 complaints
1 parent ac97342 commit 64a16f1

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

quantecon/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import numba
88
except:
99
raise ImportError(
10-
"Cannot import numba from current anaconda distribution. Please run `conda install numba` to install the latest version.")
10+
"Cannot import numba from current anaconda distribution. \
11+
Please run `conda install numba` to install the latest version.")
1112

1213
#-Modules-#
1314
from . import distributions
@@ -25,7 +26,8 @@
2526
# from .game_theory import <objects-here> #Place Holder if we wish to promote any general objects to the qe namespace.
2627
from .graph_tools import DiGraph, random_tournament_graph
2728
from .gridtools import cartesian, mlinspace, simplex_grid, simplex_index
28-
from .inequality import lorenz_curve, gini_coefficient, shorrocks_index, rank_size_plot
29+
from .inequality import lorenz_curve, gini_coefficient, shorrocks_index, \
30+
rank_size_plot
2931
from .kalman import Kalman
3032
from .lae import LAE
3133
from .arma import ARMA
@@ -37,7 +39,8 @@
3739
from .quadsums import var_quadratic_sum, m_quadratic_sum
3840
#->Propose Delete From Top Level
3941
#Promote to keep current examples working
40-
from .markov import MarkovChain, random_markov_chain, random_stochastic_matrix, gth_solve, tauchen, rouwenhorst
42+
from .markov import MarkovChain, random_markov_chain, random_stochastic_matrix, \
43+
gth_solve, tauchen, rouwenhorst
4144
#Imports that Should be Deprecated with markov package
4245
from .markov import mc_compute_stationary, mc_sample_path
4346
#<-

quantecon/inequality.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ def shorrocks_index(A):
122122
def rank_size_plot(data, ax, label=None, c=1.0):
123123
"""
124124
Generate rank-size data corresponding to distribution data.
125-
125+
126126
Examples
127127
--------
128-
128+
129129
> import numpy as np
130130
> import matplotlib.pyplot as plt
131131
> y = np.exp(np.random.randn(1000)) # simulate data
@@ -135,13 +135,11 @@ def rank_size_plot(data, ax, label=None, c=1.0):
135135
136136
Parameters
137137
----------
138-
138+
139139
data : array_like
140140
the set of observations
141-
142141
c : int or float
143142
restrict plot to top (c x 100)% of the distribution
144-
145143
ax : axis object
146144
for plotting on, has method ax.loglog
147145
"""

0 commit comments

Comments
 (0)