Skip to content

Commit

Permalink
Merge pull request #4 from MSD-IRIMAS/aif/add-pyproj
Browse files Browse the repository at this point in the history
[MNT] Add pyproject
  • Loading branch information
hadifawaz1999 authored Jul 28, 2024
2 parents 3b3eb33 + 9bc8a5a commit e5ce18e
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/config_hydra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hydra :
dir : exps/${hydra.job.name}

output_dir: './' # output directory
dataset : "ERing" # dataset name to load from aeon
dataset : "GunPoint" # dataset name to load from aeon
split: Null # either use train/test or both splits
znormalize: True # znormalize each time series channel independent

Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import hydra
from omegaconf import DictConfig, OmegaConf

from utils import create_directory, load_data
from draw_functions import draw_elastic, draw_elastic_gif
from src.utils import create_directory, load_data
from src.draw_functions import draw_elastic, draw_elastic_gif


@hydra.main(config_name="config_hydra.yaml", config_path="config")
Expand Down
69 changes: 69 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[build-system]
requires = ["setuptools>61", "wheel", "toml", "build"]
build-backend = "setuptools.build_meta"

[project]
name = "elastic-warping-visualization"
version = "0.0.1"
description = " Visualization of Elastic Warping of Time Series Data "
authors = [
{name = "Ali Ismail-Fawaz", email = "ali-el-hadi.ismail-fawaz@uha.fr"},
{name = "Maxime Devanne", email = "maxime.devanne@uha.fr"},
{name = "Stefano Berretti", email = "stefano.berretti@unifi.it"},
{name = "Jonathan Weber", email = "jonathan.weber@uha.fr"},
{name = "Germain Forestier", email = "germain.forestier@uha.fr"}
]
maintainers = [
{name = "Ali Ismail-Fawaz", email = "ali-el-hadi.ismail-fawaz@uha.fr"}
]
requires-python = ">=3.10"
license = {text = "GPL-3.0-only"}

keywords = [
"data-science",
"machine-learning",
"data-mining",
"time-series",
"dynamic-time-warping",
"elastic-similarity-measures",
"elastic-distances",
"time-series-analysis",
"time-series-classification",
"time-series-regression",
"time-series-machine-learning",
"data-visualization"
]

classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]

dependencies = [
"numpy==1.26.4",
"aeon==0.10.0",
"hydra-core==1.3.2",
"omegaconf==2.3.0",
"matplotlib==3.9.0"
]

[project.optional-dependencies]
dev = [
"black",
"flake8",
"mypy",
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-timeout",
"pytest-rerunfailures",
"pre-commit"
]

[tool.setuptools]
packages = ["src"]
2 changes: 1 addition & 1 deletion draw_functions.py → src/draw_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from aeon.distances import cost_matrix
from aeon.distances._alignment_paths import compute_min_return_path

from utils import alignment_path_to_plot
from src.utils import alignment_path_to_plot


def draw_elastic(
Expand Down
File renamed without changes.

0 comments on commit e5ce18e

Please sign in to comment.