Skip to content

Commit b54e4ea

Browse files
authored
Merge pull request #620 from bashtage/update-scipy
MAINT: Updates for scipy changes
2 parents 9ab70f9 + f393d06 commit b54e4ea

File tree

9 files changed

+26
-25
lines changed

9 files changed

+26
-25
lines changed

azure-pipelines.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ variables:
99
OMP_NUM_THREADS: 1
1010
VML_NUM_THREADS: 1
1111
OPENBLAS_NUM_THREADS: 1
12+
JUPYTER_PLATFORM_DIRS: 1
1213
PYTHONHASHSEED: 12345678 # Ensure tests are correctly gathered by xdist
1314
TEST_INSTALL: false
1415
MPLBACKEND: agg

doc/source/changes/5.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Version 5.0
3838

3939
* Switched variable ordering by default. Importing ``linearmodels.__future__.ordering``
4040
is a no-op, and has no effect.
41-
* Removed dependence on property-cached in favor of :meth:`functools.cached_property`.
41+
* Removed dependence on property-cached in favor of :class:`functools.cached_property`.

doc/source/conf.py

+7-9
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,13 @@
276276

277277
# Example configuration for intersphinx: refer to the Python standard library.
278278
intersphinx_mapping = {
279-
"statsmodels": ("https://www.statsmodels.org/dev/", None),
280-
"matplotlib": ("https://matplotlib.org/stable/", None),
281-
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
282-
"python": ("https://docs.python.org/3/", None),
283-
"numpy": ("https://numpy.org/doc/stable/", None),
284-
"np": ("https://numpy.org/doc/stable/", None),
285-
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
286-
"pd": ("https://pandas.pydata.org/pandas-docs/stable/", None),
287-
"xarray": ("https://docs.xarray.dev/en/stable/", None),
279+
"statsmodels": ("https://www.statsmodels.org/dev", None),
280+
"matplotlib": ("https://matplotlib.org/stable", None),
281+
"scipy": ("https://docs.scipy.org/doc/scipy", None),
282+
"python": ("https://docs.python.org/3", None),
283+
"numpy": ("https://numpy.org/doc/stable", None),
284+
"pandas": ("https://pandas.pydata.org/pandas-docs/stable", None),
285+
"xarray": ("https://docs.xarray.dev/en/stable", None),
288286
}
289287

290288
extlinks = {"issue": ("https://github.com/bashtage/linearmodels/issues/%s", "GH%s")}

linearmodels/asset_pricing/model.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def fit(
286286
debiased : bool
287287
Flag indicating whether to debias the covariance estimator using
288288
a degree of freedom adjustment
289-
**cov_config : dict
289+
cov_config : dict
290290
Additional covariance-specific options. See Notes.
291291
292292
Returns
@@ -611,7 +611,7 @@ def fit(
611611
debiased : bool
612612
Flag indicating whether to debias the covariance estimator using
613613
a degree of freedom adjustment
614-
**cov_config
614+
cov_config
615615
Additional covariance-specific options. See Notes.
616616
617617
Returns
@@ -942,7 +942,7 @@ def fit(
942942
optimizing the objective function. If not provided, defers to
943943
scipy to choose an appropriate optimizer. All minimize inputs
944944
except ``fun``, ``x0``, and ``args`` can be overridden.
945-
**cov_config
945+
cov_config
946946
Additional covariance-specific options. See Notes.
947947
948948
Returns

linearmodels/iv/absorbing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def lsmr_annihilate(
147147
resid = _VARIABLE_CACHE[regressor_hash][variable_digest]
148148
else:
149149
beta = lsmr(x, _y, **default_opts)[0]
150-
resid = y[:, i : i + 1] - (x.dot(sp.csc_matrix(beta[:, None]))).toarray()
150+
resid = y[:, i : i + 1] - x.dot(sp.csc_matrix(beta[:, None])).toarray()
151151
_VARIABLE_CACHE[regressor_hash][variable_digest] = resid
152152
resids.append(resid)
153153
return column_stack(resids)
@@ -1025,7 +1025,7 @@ def fit(
10251025
10261026
Use absorb_options to pass options
10271027
1028-
**cov_config
1028+
cov_config
10291029
Additional parameters to pass to covariance estimator. The list
10301030
of optional parameters differ according to ``cov_type``. See
10311031
the documentation of the alternative covariance estimators for

linearmodels/iv/model.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def fit(
638638
debiased : bool
639639
Flag indicating whether to debiased the covariance estimator using
640640
a degree of freedom adjustment.
641-
**cov_config
641+
cov_config
642642
Additional parameters to pass to covariance estimator. The list
643643
of optional parameters differ according to ``cov_type``. See
644644
the documentation of the alternative covariance estimators for
@@ -1250,7 +1250,7 @@ def fit(
12501250
debiased : bool
12511251
Flag indicating whether to debiased the covariance estimator using
12521252
a degree of freedom adjustment.
1253-
**cov_config
1253+
cov_config
12541254
Additional parameters to pass to covariance estimator. Supported
12551255
parameters depend on specific covariance structure assumed. See
12561256
:class:`linearmodels.iv.gmm.IVGMMCovariance` for details
@@ -1588,7 +1588,7 @@ def fit(
15881588
optimizing the objective function. If not provided, defers to
15891589
scipy to choose an appropriate optimizer. All minimize inputs
15901590
except ``fun``, ``x0``, and ``args`` can be overridden.
1591-
**cov_config
1591+
cov_config
15921592
Additional parameters to pass to covariance estimator. Supported
15931593
parameters depend on specific covariance structure assumed. See
15941594
:class:`linearmodels.iv.gmm.IVGMMCovariance` for details

linearmodels/panel/model.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ def fit(
10001000
debiased : bool
10011001
Flag indicating whether to debiased the covariance estimator using
10021002
a degree of freedom adjustment.
1003-
**cov_config
1003+
cov_config
10041004
Additional covariance-specific options. See Notes.
10051005
10061006
Returns
@@ -1865,7 +1865,7 @@ def fit(
18651865
Flag indicating that the covariance estimator should be adjusted
18661866
to account for the estimation of effects in the model. Only used
18671867
if ``auto_df=False``.
1868-
**cov_config
1868+
cov_config
18691869
Additional covariance-specific options. See Notes.
18701870
18711871
Returns
@@ -2225,7 +2225,7 @@ def fit(
22252225
debiased : bool
22262226
Flag indicating whether to debiased the covariance estimator using
22272227
a degree of freedom adjustment.
2228-
**cov_config
2228+
cov_config
22292229
Additional covariance-specific options. See Notes.
22302230
22312231
Returns
@@ -2527,7 +2527,7 @@ def fit(
25272527
debiased : bool
25282528
Flag indicating whether to debiased the covariance estimator using
25292529
a degree of freedom adjustment.
2530-
**cov_config
2530+
cov_config
25312531
Additional covariance-specific options. See Notes.
25322532
25332533
Returns
@@ -2842,7 +2842,7 @@ def fit(
28422842
debiased : bool
28432843
Flag indicating whether to debiased the covariance estimator using
28442844
a degree of freedom adjustment.
2845-
**cov_config
2845+
cov_config
28462846
Additional covariance-specific options. See Notes.
28472847
28482848
Returns

linearmodels/system/model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ def fit(
12911291
* "clustered" - Allows for 1 and 2-way clustering of errors
12921292
(Rogers).
12931293
1294-
**cov_config
1294+
cov_config
12951295
Additional parameters to pass to covariance estimator. All
12961296
estimators support debiased which employs a small-sample adjustment
12971297
@@ -1955,7 +1955,7 @@ def fit(
19551955
* "robust", "heteroskedastic" - Heteroskedasticity robust
19561956
covariance estimator
19571957
1958-
**cov_config
1958+
cov_config
19591959
Additional parameters to pass to covariance estimator. All
19601960
estimators support debiased which employs a small-sample adjustment
19611961

requirements-dev.txt

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ pytest>=7.3.0,<8
55
isort>=5.12
66
ipython
77
matplotlib
8+
ruff
9+
flake8
810
jupyter
911
nbconvert
1012
nbformat

0 commit comments

Comments
 (0)