Compare commits

...

2 Commits

Author SHA1 Message Date
617ed541e3 reset rescaling factor to 1.0 even if its zero as given in the CR block (issue #12) 2021-09-16 16:10:13 +02:00
Mario Fink
aa020eee0c * add pip/build to gitignore
* makefile for pip: extract proper section of README.md
* bump version 1.2.11
2021-09-02 11:56:06 +02:00
5 changed files with 8 additions and 6 deletions

1
.gitignore vendored
View File

@@ -30,3 +30,4 @@ pip/README.md
pip/LICENSE
pip/*egg-info
pip/dist/
pip/build/

View File

@@ -37,7 +37,7 @@ extensions = Extension(
setup(
name='imc_termite',
version='1.2.10',
version='1.2.11',
description='IMCtermite cython extension',
author='Record Evolution GmbH',
author_email='mario.fink@record-evolution.de',

View File

@@ -393,8 +393,9 @@ namespace imc
{
for ( imc::datatype& el: ydata_ )
{
// std::cout<<"value:"<<el.as_double()<<"\n";
el = imc::datatype(el.as_double()*factor_ + offset_);
//std::cout<<"value:"<<el.as_double()<<"\n";
double fact = ( factor_ == 0.0 ) ? 1.0 : factor_;
el = imc::datatype(el.as_double()*fact + offset_);
}
}
}

View File

@@ -8,13 +8,13 @@ publish-binary: bdist upload
prepdist: ../cython/py_imc_termite.pyx ../cython/imc_termite.pxd ../cython/py_imc_termite.cpp
cp -v $? ./
cp -v $(shell ls ../lib/imc_*.hpp) ./
tail -n 212 ../README.md > ./README.md
cat ../README.md | grep '^# IMCtermite' -A 50000 > ./README.md
cp -v ../LICENSE ./
sdist: prepdist
python3 setup.py sdist
# TODO use manylinux wheel to avoid ERROR "unsupported platform tag 'linux_x86_64'"
# TODO use manylinux wheel to avoid ERROR "unsupported platform tag 'linux_x86_64'"
# see: - https://github.com/pypa/manylinux
bdist: prepdist
python3 setup.py bdist_wheel

View File

@@ -18,7 +18,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setup(
name="IMCtermite",
version="1.2.10",
version="1.2.11",
author="Record Evolution GmbH",
author_email="mario.fink@record-evolution.de",
maintainer="Record Evolution GmbH",