This repository has been archived by the owner on Jun 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
403 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.pyd | ||
*.so | ||
.eggs | ||
*.log | ||
*.egg-info | ||
_dep.py | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
language: python | ||
|
||
python: | ||
- 3.5.2 | ||
- 3.6-dev | ||
|
||
install: | ||
- sudo apt-get install enchant | ||
- pip install -r requirements-dev.txt | ||
|
||
script: | ||
- python setup.py test --coverage -q | ||
- flake8 | ||
- if [[ $TRAVIS_PYTHON_VERSION == 3.5.2 ]]; then python setup.py test --coveralls; fi | ||
- python setup.py bench | ||
|
||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
from .data import Data | ||
from .timeseries import TimeSeries, is_timeseries | ||
from .main import timeseries | ||
from .names import tsname | ||
from .timeseries import TimeSeries, is_timeseries, ts_bin_op | ||
from .scatter import Scatter, is_scatter | ||
from .main import timeseries, randomts | ||
from ..dsl import parse, evaluate | ||
from .. import backends # noqa | ||
|
||
|
||
__all__ = [ | ||
'Data', | ||
'tsname', | ||
'TimeSeries', | ||
'is_timeseries', | ||
'timeseries' | ||
'Scatter', | ||
'is_scatter', | ||
'timeseries', | ||
'randomts', | ||
'ts_bin_op', | ||
'parse', | ||
'evaluate' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from functools import reduce | ||
|
||
from ..conf import settings | ||
|
||
|
||
def tsname(*names): | ||
sp = settings.splittingnames | ||
return reduce(lambda x, y: '%s%s%s' % (x, sp, y), names) | ||
|
||
|
||
def composename(name, *names, **kwargs): | ||
sp = settings.splittingnames | ||
kw = ','.join(('{0}={1}'.format(*v) for v in kwargs.items())) | ||
if kw: | ||
kw = ',' + kw | ||
return sp.join(('{0}({1}{2})'.format(name, x, kw) for x in names)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.