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

QuantEcon / QuantEcon.py / 15482460166

06 Jun 2025 03:55AM UTC coverage: 92.735% (+0.02%) from 92.712%
15482460166

push

github

web-flow
RLS: setup for v0.8.1 (#767)

1 of 1 new or added line in 1 file covered. (100.0%)

7429 of 8011 relevant lines covered (92.73%)

1.85 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