Compare commits

..

3 Commits

Author SHA1 Message Date
75e792b86c bump version 1.2.12 2021-09-16 16:15:26 +02:00
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/LICENSE
pip/*egg-info pip/*egg-info
pip/dist/ pip/dist/
pip/build/

View File

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

View File

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

View File

@@ -8,7 +8,7 @@ publish-binary: bdist upload
prepdist: ../cython/py_imc_termite.pyx ../cython/imc_termite.pxd ../cython/py_imc_termite.cpp prepdist: ../cython/py_imc_termite.pyx ../cython/imc_termite.pxd ../cython/py_imc_termite.cpp
cp -v $? ./ cp -v $? ./
cp -v $(shell ls ../lib/imc_*.hpp) ./ 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 ./ cp -v ../LICENSE ./
sdist: prepdist sdist: prepdist

View File

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