mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
math/py-pwlf: New port: Fit piecewise linear functions to data
This commit is contained in:
parent
64620e6d0d
commit
7f5de1c965
4 changed files with 37 additions and 0 deletions
|
@ -1057,6 +1057,7 @@
|
||||||
SUBDIR += py-pplpy
|
SUBDIR += py-pplpy
|
||||||
SUBDIR += py-primecountpy
|
SUBDIR += py-primecountpy
|
||||||
SUBDIR += py-primme
|
SUBDIR += py-primme
|
||||||
|
SUBDIR += py-pwlf
|
||||||
SUBDIR += py-py-find-1st
|
SUBDIR += py-py-find-1st
|
||||||
SUBDIR += py-pyFFTW
|
SUBDIR += py-pyFFTW
|
||||||
SUBDIR += py-pyaudi
|
SUBDIR += py-pyaudi
|
||||||
|
|
30
math/py-pwlf/Makefile
Normal file
30
math/py-pwlf/Makefile
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
PORTNAME= pwlf
|
||||||
|
DISTVERSION= 2.5.1
|
||||||
|
CATEGORIES= math
|
||||||
|
MASTER_SITES= PYPI
|
||||||
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
MAINTAINER= yuri@FreeBSD.org
|
||||||
|
COMMENT= Fit piecewise linear functions to data
|
||||||
|
WWW= https://github.com/cjekel/piecewise_linear_fit_py
|
||||||
|
|
||||||
|
LICENSE= MIT
|
||||||
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||||
|
|
||||||
|
RUN_DEPENDS= ${PYNUMPY} \
|
||||||
|
${PYTHON_PKGNAMEPREFIX}scipy>=1.8.0:science/py-scipy@${PY_FLAVOR}
|
||||||
|
|
||||||
|
USES= python
|
||||||
|
USE_PYTHON= distutils autoplist
|
||||||
|
|
||||||
|
NO_ARCH= yes
|
||||||
|
|
||||||
|
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||||
|
TEST_WRKSRC= ${WRKSRC}/tests
|
||||||
|
|
||||||
|
do-test:
|
||||||
|
@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} tests.py
|
||||||
|
|
||||||
|
# tests as of 2.5.1: Ran 62 tests in 63.140s
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
math/py-pwlf/distinfo
Normal file
3
math/py-pwlf/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1745528718
|
||||||
|
SHA256 (pwlf-2.5.1.tar.gz) = d60cade349682df4c1c8952e0a8761afdb1aca601718c253ae11d6add0799a6d
|
||||||
|
SIZE (pwlf-2.5.1.tar.gz) = 21890
|
3
math/py-pwlf/pkg-descr
Normal file
3
math/py-pwlf/pkg-descr
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
pwlf is a Python library for fitting continuous piecewise linear functions
|
||||||
|
to data.
|
||||||
|
Just specify the number of line segments you desire and provide the data.
|
Loading…
Add table
Reference in a new issue