MCPcopy
hub / github.com/quantopian/zipline / load_example_modules

Function load_example_modules

zipline/examples/__init__.py:11–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10# These are used by test_examples.py to discover the examples to run.
11def load_example_modules():
12 example_modules = {}
13 for f in os.listdir(os.path.dirname(__file__)):
14 if not f.endswith('.py') or f == '__init__.py':
15 continue
16 modname = f[:-len('.py')]
17 mod = import_module('.' + modname, package=__name__)
18 example_modules[modname] = mod
19 globals()[modname] = mod
20
21 # Remove noise from loop variables.
22 del f, modname, mod
23 return example_modules
24
25
26# Columns that we expect to be able to reliably deterministic

Callers

nothing calls this directly

Calls 1

endswithMethod · 0.45

Tested by

no test coverage detected