From nobody Fri Jul 21 06:38:46 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R6fyt4Yf4z4np3R; Fri, 21 Jul 2023 06:38:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R6fyt3TDhz3GxK; Fri, 21 Jul 2023 06:38:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689921526; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ddOpjG0jUg1rsdowQiQtKJujgYk9lFD2tRTDO6zcV1U=; b=B5a28LXjdA0xLu2LDGuJLI/gbaFbdGWUCPGquL8egWPZDXuEtDW9fvd0f19+h6sHn8Bdye pZktX7Hw3id+98ZrOQJpL60UVKkIC6ALXMvDDcTd405rx2+BiUjAkU9FAb9qPoeVVnnWCr F7NWGHOE84OwN3AZ7uAwumXOnk8XU0W5ehkzK/0xAtf8/lnQHY43yJ9VldqootRB+D31GD 80GuShrioWjh/AEWMLRH+3cHcpr6C+qxv+6jm3hprNVQWi+4bHwAdcEI/hfQ1B34Sm0BCf YMpuROSvAk9rIF/vvQdnednDcirzos7IulRr1XoeW34wUgcDXyl0vlZnbXOCgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689921526; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ddOpjG0jUg1rsdowQiQtKJujgYk9lFD2tRTDO6zcV1U=; b=uK8k3ews8nqW36L4ovPc4lWAM5BwUnysf8KDYudEQuq41Hii8qpvOW88kGC0KFLuPJMZYG MPxGXLyHbZ4CPMTtK836WgKbCLAvZmIMGdeZKdYb5bLKaA2klq6ADlAKFMX+x0XCFXvv1X r8rGc3uiYkuQPSSEnRK6l00HjshV5iskJkYJi9OEgbfVzPw5uJhJN+/34T4IU7Xq51JBjD CRpCU0O5zlRM8sXU60MoLdVVDu9bPUuIrHfcbhQsTNFQUHza5j/GepobnCrfotappWdglj 4fML9mKeV9p2ZL+EIr+VRMG+VJI0KJhR/PwPUyRx/YxT1tC2ju3c4B1AyD784A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689921526; a=rsa-sha256; cv=none; b=VaIxoGUDJ6VPbEteIIdT97/yrdNzz3k55XeDQjsYss9CLgMoQ7fYZUn5p/UimPR8eyQ38w Zw+T4rbfGneoqAuZICEjFxttQGQOpHCEdY4BKVcZKm5JzPK4wNsrlzO4GNB2CZEZIZNbo1 sB6OAQVKdPk7zjk55WgWKuugVAYFf15QACFdB7GPvXSKXOH9C+SsMC+cQ0gJPMUQ2qLOcU FrxTJGJjs69gjYIl8y7e5l0Kqb09GIULI8GoyYjnD9ebZ5JZPEL2ZBD9MIyvHB/enYlWtG Xy6G13MR/Gy7rF5LfnKzqt8pI62vZcx/B/NRMHwtsi6rMFJ3l3XpuWuYDmSFKA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R6fyt28Z9z12K8; Fri, 21 Jul 2023 06:38:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36L6ckHT014006; Fri, 21 Jul 2023 06:38:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36L6ckX9014005; Fri, 21 Jul 2023 06:38:46 GMT (envelope-from git) Date: Fri, 21 Jul 2023 06:38:46 GMT Message-Id: <202307210638.36L6ckX9014005@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 8a8806922e0f - main - misc/py-thermocouples_reference: Mew port: Thermocouple emf reference functions List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8a8806922e0f1b92e09b01302592e9458e62a98c Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8a8806922e0f1b92e09b01302592e9458e62a98c commit 8a8806922e0f1b92e09b01302592e9458e62a98c Author: Yuri Victorovich AuthorDate: 2023-07-18 14:29:17 +0000 Commit: Yuri Victorovich CommitDate: 2023-07-21 06:38:37 +0000 misc/py-thermocouples_reference: Mew port: Thermocouple emf reference functions --- misc/Makefile | 1 + misc/py-thermocouples_reference/Makefile | 27 +++++++++++++++++++++++++++ misc/py-thermocouples_reference/distinfo | 3 +++ misc/py-thermocouples_reference/files/test.py | 10 ++++++++++ misc/py-thermocouples_reference/pkg-descr | 3 +++ 5 files changed, 44 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index cf6f98c4454c..1c15af2e03c4 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -474,6 +474,7 @@ SUBDIR += py-tflearn SUBDIR += py-tflite SUBDIR += py-tflite-support + SUBDIR += py-thermocouples_reference SUBDIR += py-toil SUBDIR += py-torch-geometric SUBDIR += py-torchmetrics diff --git a/misc/py-thermocouples_reference/Makefile b/misc/py-thermocouples_reference/Makefile new file mode 100644 index 000000000000..70d4b8ff867e --- /dev/null +++ b/misc/py-thermocouples_reference/Makefile @@ -0,0 +1,27 @@ +PORTNAME= thermocouples_reference +DISTVERSION= 0.20 +CATEGORIES= misc +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Thermocouple emf reference functions +WWW= https://pypi.org/project/thermocouples_reference/ + +LICENSE= PD + +#BUILD_DEPENDS= ${PY_SETUPTOOLS} +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist pytest + +NO_ARCH= yes + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +do-test: + @${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/test.py + +.include diff --git a/misc/py-thermocouples_reference/distinfo b/misc/py-thermocouples_reference/distinfo new file mode 100644 index 000000000000..2275128e3c26 --- /dev/null +++ b/misc/py-thermocouples_reference/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1689906306 +SHA256 (thermocouples_reference-0.20.tar.gz) = 94dd18ce6d44e92fffafbb0caf4ed2452efbc31a763850ff439929717f0f4f84 +SIZE (thermocouples_reference-0.20.tar.gz) = 17107 diff --git a/misc/py-thermocouples_reference/files/test.py b/misc/py-thermocouples_reference/files/test.py new file mode 100644 index 000000000000..d92aadd7ceb6 --- /dev/null +++ b/misc/py-thermocouples_reference/files/test.py @@ -0,0 +1,10 @@ +from thermocouples_reference import thermocouples + +typeK = thermocouples['K'] +print(f"typeK={typeK}") + +t1 = typeK.emf_mVC(42, Tref=0) +print(f"t1={t1}") + +t2 = typeK.emf_mVC([-3.14159, 42, 54], Tref=0) +print(f"t2={t2}") diff --git a/misc/py-thermocouples_reference/pkg-descr b/misc/py-thermocouples_reference/pkg-descr new file mode 100644 index 000000000000..288f27b513db --- /dev/null +++ b/misc/py-thermocouples_reference/pkg-descr @@ -0,0 +1,3 @@ +Python module containing calibration data and lookup functions for standard +thermocouples of types B, C, D, E, G, J, K, M, N, P, R, S, T, and some less +standard types too.