• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

QuantEcon / QuantEcon.py / 12336863143

15 Dec 2024 07:24AM UTC coverage: 92.716% (+0.03%) from 92.691%
12336863143

Pull #751

github

web-flow
Merge 4401250e6 into 4f4f96485
Pull Request #751: FIX: Fix deprecations in tests

2 of 2 new or added lines in 2 files covered. (100.0%)

7357 of 7935 relevant lines covered (92.72%)

2.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/quantecon/gridtools.py
1
# This file is not meant for public use and will be removed v0.8.0.
2
# Use the `quantecon` namespace for importing the objects
3
# included below.
4

5
import warnings
×
6
from . import _gridtools
×
7

8

9
__all__ = ['cartesian', 'mlinspace', 'cartesian_nearest_index', 'simplex_grid',
×
10
           'simplex_index', 'num_compositions', 'num_compositions_jit']
11

12

13
def __dir__():
×
14
    return __all__
×
15

16

17
def __getattr__(name):
×
18
    if name not in __all__:
×
19
        raise AttributeError(
×
20
                "`quantecon.gridtools` is deprecated and has no attribute "
21
                f"'{name}'."
22
            )
23

24
    warnings.warn(f"Please use `{name}` from the `quantecon` namespace, the"
×
25
                  "`quantecon.gridtools` namespace is deprecated. You can use"
26
                  f" the following instead:\n `from quantecon import {name}`.",
27
                  category=DeprecationWarning, stacklevel=2)
28

29
    return getattr(_gridtools, name)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc