vasole / fisx Goto Github PK
View Code? Open in Web Editor NEWEnhanced C++ port of the Physics routines used by PyMca
License: MIT License
Enhanced C++ port of the Physics routines used by PyMca
License: MIT License
Hello, I put here the information gather during the build process.
running clean
removing '/<>/.pybuild/pythonX.Y-dbg_3.5/build' (and everything under it)
setup.py:90: ResourceWarning: unclosed file <_io.TextIOWrapper name='/<>/src/fisx_version.h' mode='r' encoding='ANSI_X3.4-1968'>
content = open(os.path.join(cppDir, "fisx_version.h"), "r").readlines()
setup.py:237: ResourceWarning: unclosed file <_io.TextIOWrapper name='README.rst' mode='r' encoding='ANSI_X3.4-1968'>
long_description = open("README.rst").read()
/<>/src/fisx_math.cpp: In static member function 'static double fisx::Math::hypermet(const double&, const double&, const double&, const double&, const double&, const double&, const double&, const double&, const double&)':
/<>/src/fisx_math.cpp:607:18: warning: unused variable 'MY_PI' [-Wunused-variable]
const double MY_PI = 3.141592653589793;
^
/<>/src/fisx_math.cpp:609:18: warning: unused variable 'log2' [-Wunused-variable]
const double log2 = 0.69314718055994529;
^
/<>/src/fisx_math.cpp:611:18: warning: unused variable 'sigmaToFWHM' [-Wunused-variable]
const double sigmaToFWHM = 2.3548200450309493;
^
/<>/src/fisx_xrf.cpp: In member function 'std::mapstd::__cxx11::basic_string<char, std::mapstd::cxx11::basic_string<char, double> > fisx::XRF::getFluorescence(const string&, const fisx::Elements&, const int&, const string&, const int&, const int&)':
/<>/src/fisx_xrf.cpp:227:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (iLayer = 0; iLayer < sampleLayerIndex; iLayer++)
^
/<>/src/fisx_xrf.cpp: In member function 'double fisx::XRF::getGeometricEfficiency(const int&) const':
/<>/src/fisx_xrf.cpp:471:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (iLayer = referenceLayerIndex; iLayer < sampleLayerIndex; iLayer++)
^
/<>/src/fisx_xrf.cpp:479:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (iLayer = sampleLayerIndex; iLayer < referenceLayerIndex; iLayer++)
^
/<>/src/fisx_xrf.cpp: In member function 'void fisx::XRF::getSpectrum(double, double, double*, int, const std::mapstd::__cxx11::basic_string<char, double>&, const std::mapstd::__cxx11::basic_string<char, double>&, const std::mapstd::__cxx11::basic_string<char, double>&, const expectedLayerEmissionType&) const':
/<>/src/fisx_xrf.cpp:594:12: warning: unused variable 'eta' [-Wunused-variable]
double eta = 0.0;
^
/<>/src/fisx_xrf.cpp:630:33: warning: 'gain' may be used uninitialized in this function [-Wmaybe-uninitialized]
energy[i] = zero + gain * channel[i];
^
/<>/src/fisx_xrf.cpp:630:26: warning: 'zero' may be used uninitialized in this function [-Wmaybe-uninitialized]
energy[i] = zero + gain * channel[i];
^
/<>/src/fisx_elements.cpp:1856:16: warning: variable 'factor' set but not used [-Wunused-but-set-variable]
double factor;
^
/<>/src/fisx_elements.cpp:1831:12: warning: variable 'intrinsicEfficiency' set but not used [-Wunused-but-set-variable]
double intrinsicEfficiency;
^
/<>/src/fisx_elements.cpp: In member function 'std::mapstd::__cxx11::basic_string<char, double> fisx::Elements::parseFormula(const string&) const':
/<>/src/fisx_elements.cpp:1635:13: warning: 'parsingKey' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (parsingKey)
^
/<>/src/fisx_simpleini.cpp:94:17: warning: 'p0' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (p0 != 0)
^
/<>/src/fisx_xrfconfig.cpp:68:10: warning: variable 'fisxFile' set but not used [-Wunused-but-set-variable]
bool fisxFile;
^
/<>/src/fisx_epdl97.cpp:617:31: warning: unused variable 'j' [-Wunused-variable]
int i, idx, iMu, nValues, j;
^
As it is written, the XRF class does not have its own Elements library and requires an existing instance for calculations.
This has the advantage of being able to compare the same configuration with multiple libraries and also to make sure the library is not modified (const
instruction)
This has the problem that all the materials need to have been previously defined in the elements library.
A proper parser is needed somewhere (in Elements class or in XRF class) when using C++ and PyMca generated cfg files. This is particularly true when providing materials that depend on other materials and not pure elements. Even things like Ag1 are currently not considered as a pure element.
Hello, could you add the licenses of all the fisx_data files.
In order to upload fisx into Debian, I need to check the licenses of these files.
Depending on these licnese, I will target the main, non-free or no upload into Debian.
I need the full licenses text of the original databases used to generate these files.
without these informations, I could not upload fisx into Debian :((
Cheers
The partial photoelectric cross sections respect the supplied binding energies, but the total mass attenuation coefficients have the last word.
In the figure below, the data correspond to lead with a) the total mass attenuation coefficient using EADL binding energies, b) corresponds to the total photoelectric cross section using the PyMca binding energies and c) the K-shell partial photoelectric cross section using the same binding energies as in b).
The original intention is that provided total photoelectric cross sections, one could calculate the probability to excite a particular shell using the partial cross-sections.
One should provide a method to adjust a set of total photoelectric cross sections to a different set of binding energies than the ones implicitly used by it.
Now I get this error.
Traceback (most recent call last):
File "fisx/tests/testXRF.py", line 90, in testXRFResults
elementsInstance.initializeAsPyMca()
File "python/cython/_fisx.pyx", line 289, in fisx._fisx.PyElements.initializeAsPyMca (/<>/python/cython/_fisx.cpp:5358)
when I am looking at the code it seems now that fisx depends on pymca ????
pyma -> fisx -> pymca
all reference to Pymca should be removed from fisx and it should work without pymca
cheers
Frederic
Hello armando
here the result of the unit tests
testXRFImport (fisx.tests.testXRF.testXRF) ... ok
testXRFInstantiation (fisx.tests.testXRF.testXRF) ... ok
testXRFResults (fisx.tests.testXRF.testXRF) ... ERROR
testEPDL97Import (fisx.tests.testEPDL97.testEPDL97) ... ok
testElementsImport (fisx.tests.testElements.testElements) ... ok
testElementsInstantiation (fisx.tests.testElements.testElements) ... FAIL
testSimpleSpecfileImport (fisx.tests.testSimpleSpecfile.testSimpleSpecfile) ... ok
testSimpleSpecfileReading (fisx.tests.testSimpleSpecfile.testSimpleSpecfile) ... ok
testSimpleSpecfileReadingCompatibleWithUserLocale (fisx.tests.testSimpleSpecfile.testSimpleSpecfile) ... ok
testSimpleSpecfileReadingWithCRLF (fisx.tests.testSimpleSpecfile.testSimpleSpecfile) ... ok
testDataDirectoryPresence (fisx.tests.testDataDir.testDataDir) ... FAIL
testDataFilePresence (fisx.tests.testDataDir.testDataDir) ... FAIL
testDocDirectoryPresence (fisx.tests.testDataDir.testDataDir) ... FAIL
Traceback (most recent call last):
File "fisx/tests/testXRF.py", line 89, in testXRFResults
elementsInstance = Elements()
File "python/cython/_fisx.pyx", line 276, in fisx._fisx.PyElements.cinit (/<>/python/cython/_fisx.cpp:4950)
File "fisx/DataDir.py", line 60, in
raise IOError('%s directory not found' % basename)
IOError: directory not found
Traceback (most recent call last):
File "fisx/tests/testElements.py", line 81, in testElementsInstantiation
'Unsuccesful Elements() instantiation')
AssertionError: Unsuccesful Elements() instantiation
Traceback (most recent call last):
File "fisx/tests/testDataDir.py", line 69, in testDataDirectoryPresence
'Unsuccessful fisx.DataDir import')
AssertionError: Unsuccessful fisx.DataDir import
Traceback (most recent call last):
File "fisx/tests/testDataDir.py", line 79, in testDataFilePresence
self.testDataDirectoryPresence()
File "fisx/tests/testDataDir.py", line 69, in testDataDirectoryPresence
'Unsuccessful fisx.DataDir import')
AssertionError: Unsuccessful fisx.DataDir import
Traceback (most recent call last):
File "fisx/tests/testDataDir.py", line 104, in testDocDirectoryPresence
'Unsuccessful fisx.DataDir import')
AssertionError: Unsuccessful fisx.DataDir import
Ran 13 tests in 0.070s
FAILED (failures=4, errors=1)
('Instantiation error: ', <type 'exceptions.IOError'>, IOError(' directory not found',), <traceback object at 0xb6b7357c>)
E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd /<>/.pybuild/pythonX.Y_2.7/build; python2.7 -m unittest discover -v
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
debian/rules:11: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
It seems that fisx does not find the DATADIR. Indeed I fixed it for the package once installed.
export FISX_DATA_DIR=/usr/share/fisx/
This way I can share the data (18 Mo) between the python2 and python3.
I do not have yet a great conviction how to deal with this issue...
I can use your tests in the ci.Debian.net (test pacakges once they are installed), but not during the build process.
Currently the C++ library is able to read a configuration from an ini file written by PyMca.
It is desirable that the C++ library could write a file with the configuration.
I try to install fisx on Windows 10 with pip, well actually I try to install PyMca, but fisx is one of its dependencies. Both installations fails with:
running install_lib
copying build\lib.win32-2.7\fisx\DataDir.py -> C:\Python27\Lib\site-packages\fisx
copying build\lib.win32-2.7\fisx\_fisx.pyd -> C:\Python27\Lib\site-packages\fisx
byte-compiling C:\Python27\Lib\site-packages\fisx\DataDir.py to DataDir.pyc
running install_data
fisx to be installed in C:\Python27\Lib\site-packages\
running install_egg_info
running egg_info
writing requirements to python\fisx.egg-info\requires.txt
writing python\fisx.egg-info\PKG-INFO
writing top-level names to python\fisx.egg-info\top_level.txt
writing dependency_links to python\fisx.egg-info\dependency_links.txt
reading manifest file 'python\fisx.egg-info\SOURCES.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\ieuser\appdata\local\temp\pip-install-nenff2\fisx\setup.py", line 339, in <module>
setup_requires=setup_requires,
File "C:\Python27\lib\site-packages\setuptools\__init__.py", line 131, in setup
return distutils.core.setup(**attrs)
File "C:\Python27\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Python27\lib\distutils\command\install.py", line 575, in run
self.run_command(cmd_name)
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\install_egg_info.py", line 34, in run
self.run_command('egg_info')
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 278, in run
self.find_sources()
File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 293, in find_sources
mm.run()
File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 524, in run
self.add_defaults()
File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 567, in add_defaults
self.read_manifest()
File "C:\Python27\lib\site-packages\setuptools\command\sdist.py", line 199, in read_manifest
self.filelist.append(line)
File "C:\Python27\lib\site-packages\setuptools\command\egg_info.py", line 466, in append
path = convert_path(item)
File "C:\Python27\lib\distutils\util.py", line 124, in convert_path
raise ValueError, "path '%s' cannot be absolute" % pathname
ValueError: path '/users/sole/GIT/fisx/LICENSE' cannot be absolute
Thanks in advance for any kind of help!
on a clean install of the master branch of fisx with Anaconda Python 2.7.11 on Mac OSX (10.11):
Python 2.7.11 |Anaconda 2.4.1 (x86_64)| (default, Dec 6 2015, 18:57:58)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> from fisx import Elements, version
>>> version()
'1.0.6'
>>> elems = Elements()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "python/cython/_fisx.pyx", line 288, in fisx._fisx.PyElements.__cinit__ (/Users/Newville/Codes/fisx_sole/python/cython/_fisx.cpp:5189)
self.thisptr = new Elements(directoryName)
is not a valid transition
Hi Armando,
I am seeing a compilation warning for the following two lines:
Lines 152 to 153 in c8373b8
/tmp/pip-req-build-8m4M4E/src/fisx_math.cpp: In static member function ‘static double fisx::Math::AS_5_1_56(const double&)’:
/tmp/pip-req-build-8m4M4E/src/fisx_math.cpp:152:25: warning: array subscript is above array bounds [-Warray-bounds]
num = (num + a[i]) * x;
^
/tmp/pip-req-build-8m4M4E/src/fisx_math.cpp:153:25: warning: array subscript is above array bounds [-Warray-bounds]
den = (den + b[i]) * x;
This looks like a bug to me as the first iteration will start at 4 causing therefore the out of bounds array access.
If you agree, I will gladly submit a PR with a fix.
Best,
Tom
(py38) denolf@lindenolf:~$ pip install fisx
Collecting fisx
Using cached fisx-1.2.0.tar.gz (5.7 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-0801lihx/fisx_a061210d946a4e838698022373c18b14/setup.py", line 82, in <module>
import numpy
ModuleNotFoundError: No module named 'numpy'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
There appears to be a syntax error near https://github.com/vasole/fisx/blob/master/python/cython/_fisx.pyx#L733 :
def fisxVersion():
return _fisxVersion()#import numpy as np
#cimport numpy as np
cimport cython
When I try to run setup.py on a unix system, I get:
cythoning /home/darren/conda-bld/work/python/cython/_fisx.pyx to /home/darren/conda-bld/work/python/cython/_fisx.cpp
Error compiling Cython file:
------------------------------------------------------------
...
#from libcpp.string cimport string as std_string
from Version cimport fisxVersion as _fisxVersion
def fisxVersion():
return _fisxVersion()import numpy
^
------------------------------------------------------------
python/cython/_fisx.pyx:93:25: Syntax error in simple statement list
I think the pyx file just needs to be changed to read:
def fisxVersion():
return _fisxVersion()
#import numpy as np
#cimport numpy as np
cimport cython
however, making that change appears to have no effect on the build. Furthermore, running setup.py appears to rewrite _fisx.pyx in place, but I can't figure out why, or what source it is using to rewrite the contents of that file.
Python 3.9 is out. Waiting for the availability of numpy wheels.
Hello armando, here a bunch of warning observed during the build
kages/numpy/core/include -I/<<PKGBUILDDIR>>/src -I/usr/include/python3.6dm -c /<<PKGBUILDDIR>>/src/fisx_simpleini.cpp -o build/temp.linux-amd64-3.6-pydebug/<<PKGBUILDDIR>>/src/fisx_simpleini.o
/<<PKGBUILDDIR>>/src/fisx_simpleini.cpp: In member function 'void fisx::SimpleIni::readFileName(std::__cxx11::string)':
/<<PKGBUILDDIR>>/src/fisx_simpleini.cpp:94:17: warning: 'p0' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (p0 != 0)
^~
x86_64-linux-gnu-gcc -pthread -g -Og -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/<<PKGBUILDDIR>>/src -I/usr/include/python3.6dm -c /<<PKGBUILDDIR>>/src/fisx_xrfconfig.cpp -o build/temp.linux-amd64-3.6-pydebug/<<PKGBUILDDIR>>/src/fisx_xrfconfig.o
/<<PKGBUILDDIR>>/src/fisx_xrfconfig.cpp: In member function 'void fisx::XRFConfig::readConfigurationFromFile(const string&)':
/<<PKGBUILDDIR>>/src/fisx_xrfconfig.cpp:68:10: warning: variable 'fisxFile' set but not used [-Wunused-but-set-variable]
bool fisxFile;
^~~~~~~~
x86_64-linux-gnu-gcc -pthread -g -Og -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/<<PKGBUILDDIR>>/src -I/usr/include/python3.6dm -c /<<PKGBUILDDIR>>/src/fisx_version.cpp -o build/temp.linux-amd64-3.6-pydebug/<<PKGBUILDDIR>>/src/fisx_version.o
x86_64-linux-gnu-gcc -pthread -g -Og -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/lib/python3/dist-packages/numpy/core/include -I/<<PKGBUILDDIR>>/src -I/usr/include/python3.6dm -c /<<PKGBUILDDIR>>/src/fisx_elements.cpp -o build/temp.linux-amd64-3.6-pydebug/<<PKGBUILDDIR>>/src/fisx_elements.o
/<<PKGBUILDDIR>>/src/fisx_elements.cpp: In member function 'void fisx::Elements::setMassAttenuationCoefficients(const string&, const std::vector<double>&, const std::vector<double>&, const std::vector<double>&, const std::vector<double>&, const std::vector<double>&)':
/<<PKGBUILDDIR>>/src/fisx_elements.cpp:813:33: warning: comparison of integer expressions of different signedness: 'std::vector<double>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
if ((i - j - 1) == extractedEdgeEnergies[shell].second)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/fisx_elements.cpp: In member function 'std::map<std::__cxx11::basic_string<char>, std::map<std::__cxx11::basic_string<char>, double> > fisx::Elements::getEscape(const std::map<std::__cxx11::basic_string<char>, double>&, const double&, const double&, const double&, const int&, const double&, const double&) const':
/<<PKGBUILDDIR>>/src/fisx_elements.cpp:1954:16: warning: variable 'factor' set but not used [-Wunused-but-set-variable]
double factor;
^~~~~~
/<<PKGBUILDDIR>>/src/fisx_elements.cpp: In member function 'std::map<std::__cxx11::basic_string<char>, double> fisx::Elements::parseFormula(const string&) const':
/<<PKGBUILDDIR>>/src/fisx_elements.cpp:1708:13: warning: 'parsingKey' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (parsingKey)
^~
/<<PKGBUILDDIR>>/src/fisx_elements.cpp: In member function 'std::map<std::__cxx11::basic_string<char>, std::map<std::__cxx11::basic_string<char>, double> > fisx::Elements::getEscape(const std::map<std::__cxx11::basic_string<char>, double>&, const double&, const double&, const double&, const int&, const double&, const double&) const':
/<<PKGBUILDDIR>>/src/fisx_elements.cpp:1979:26: warning: 'intrinsicEfficiency' may be used uninitialized in this function [-Wmaybe-uninitialized]
rate /= intrinsicEfficiency;
~~~~~^~~~~~~~~~~~~~~~~~~~~~
python/cython/_fisx.cpp
is included in the git tree but appears to be over-written each time python setup.py build
is run. If it is always built (should it be, or only when needed?), it should not be part of the source control system.
It makes the project look like an HTML project!
In addition, it is difficult to update because doxygen changes the date inside all the generated files.
The documentation should be generated and made available, but not under version control.
TABLE I of page 2990 of Chen et al. Phys Rev. A 27 (1983) contains inconsistent data for the first two rows.
Hello armando, it works great with the python2 versions but with python3 I get this
Cheers
Fred
I: pybuild base:184: cd /<>/.pybuild/pythonX.Y_3.5/build; python3.5 -m unittest discover -v
testDataDirectoryPresence (fisx.tests.testDataDir.testDataDir) ... ok
testDataFilePresence (fisx.tests.testDataDir.testDataDir) ... FAIL
testDocDirectoryPresence (fisx.tests.testDataDir.testDataDir) ... ok
testEPDL97Import (fisx.tests.testEPDL97.testEPDL97) ... ok
testElementsImport (fisx.tests.testElements.testElements) ... ok
testElementsInstantiation (fisx.tests.testElements.testElements) ... FAIL
testSimpleSpecfileImport (fisx.tests.testSimpleSpecfile.testSimpleSpecfile) ... ok
testSimpleSpecfileReading (fisx.tests.testSimpleSpecfile.testSimpleSpecfile) ... ok
testSimpleSpecfileReadingCompatibleWithUserLocale (fisx.tests.testSimpleSpecfile.testSimpleSpecfile) ... ok
testSimpleSpecfileReadingWithCRLF (fisx.tests.testSimpleSpecfile.testSimpleSpecfile) ... ok
testXRFImport (fisx.tests.testXRF.testXRF) ... ok
testXRFInstantiation (fisx.tests.testXRF.testXRF) ... ok
testXRFResults (fisx.tests.testXRF.testXRF) ... ERROR
Traceback (most recent call last):
File "/<>/.pybuild/pythonX.Y_3.5/build/fisx/tests/testXRF.py", line 89, in testXRFResults
elementsInstance = Elements()
File "python/cython/_fisx.pyx", line 288, in fisx._fisx.PyElements.cinit (/<>/python/cython/_fisx.cpp:5192)
OSError: EPDL97: Number of scans not equal one in binding energies file /<>/.pybuild/pythonX.Y_3.5/build///EADL97_BindingEnergies.dat: iostream error
Traceback (most recent call last):
File "/<>/.pybuild/pythonX.Y_3.5/build/fisx/tests/testDataDir.py", line 98, in testDataFilePresence
'File "%s" does not exist.' % actualName)
AssertionError: False is not true : File "/<>/.pybuild/pythonX.Y_3.5/build/BindingEnergies.dat" does not exist.
Traceback (most recent call last):
File "/<>/.pybuild/pythonX.Y_3.5/build/fisx/tests/testElements.py", line 81, in testElementsInstantiation
'Unsuccesful Elements() instantiation')
AssertionError: False is not true : Unsuccesful Elements() instantiation
Ran 13 tests in 0.095s
FAILED (failures=2, errors=1)
Instantiation error: <class 'OSError'> EPDL97: Number of scans not equal one in binding energies file /<>/.pybuild/pythonX.Y_3.5/build///EADL97_BindingEnergies.dat: iostream error <traceback object at 0xb5f99fcc>
E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd /<>/.pybuild/pythonX.Y_3.5/build; python3.5 -m unittest discover -v
dh_auto_test: pybuild --test -i python{version} -p 3.5 returned exit code 13
debian/rules:26: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/<>'
debian/rules:14: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.