Skip to content

Commit

Permalink
feat(datasets): loading datasets from remote repository (#1)
Browse files Browse the repository at this point in the history
* feat(datasets): loading datasets from remote repository

* feat(datasets): adding factory methods to traffic weaver from csv files

* feat(core): interpolating series

* feat(core): interpolating series

* feat(datasets): add mix dataset

* feat(datasets): add ams dataset
  • Loading branch information
plechowicz authored Sep 22, 2024
1 parent 6783250 commit d9e579a
Show file tree
Hide file tree
Showing 54 changed files with 2,696 additions and 782 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[report]
show_missing = True
omit = src/traffic_weaver/datasets/*
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
max-line-length = 88
max-line-length = 120
extend-ignore = E203, W503
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
.husky
__pycache__/
/htmlcov/
/src/traffic_weaver/test_runners/

.venv/
venv/
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ repos:
hooks:
- id: flake8
stages: [pre-commit]
args: [--config=.flake8]
- repo: local
hooks:
- id: conventional-commit
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ build-requirements:
pip-compile -o requirements.txt pyproject.toml
pip-compile --extra dev -o dev-requirements.txt pyproject.toml

install: clean
pip-sync requirements.txt dev-requirements.txt
build: clean
pip-sync requirements.txt dev-requirements.txt\

tag-release:
commit-and-tag-version
Expand All @@ -27,6 +27,6 @@ docs: clean
cd docs && make html

test: clean
pytest --cov=traffic_weaver --cov-report term-missing --cov-report html
pytest --cov=traffic_weaver --cov-report term-missing --cov-report html --cov-config .coveragerc
mkdir -p _images
coverage-badge -f -o badges/coverage.svg
6 changes: 3 additions & 3 deletions badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dev-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sphinx
sphinx-rtd-theme
sphinx-mdinclude
sphinxcontrib-bibtex
pandas
pytest
pytest-cov
pytest-mock
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pytest]
pythonpath = src/
addopts = --doctest-modules tests src -W ignore::DeprecationWarning
addopts = --doctest-modules -W ignore::DeprecationWarning
23 changes: 5 additions & 18 deletions src/traffic_weaver/__init__.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,20 @@
from . import datasets
from . import oversample
from . import rfa
from . import match
from . import process
from . import interval
from . import array_utils
from . import sorted_array_utils
from ._version import __version__
from .oversample import (
LinearFixedOversample,
LinearAdaptiveOversample,
ExpFixedOversample,
ExpAdaptiveOversample,
CubicSplineOversample,
PiecewiseConstantOversample,
)
from .weaver import Weaver

# @formatter:off
__all__ = [
Weaver,
__version__,
datasets,
oversample,
rfa,
match,
process,
interval,
array_utils,
LinearFixedOversample,
LinearAdaptiveOversample,
ExpFixedOversample,
ExpAdaptiveOversample,
CubicSplineOversample,
PiecewiseConstantOversample,
sorted_array_utils,
]
251 changes: 0 additions & 251 deletions src/traffic_weaver/array_utils.py

This file was deleted.

Loading

0 comments on commit d9e579a

Please sign in to comment.