Commit Graph

195 Commits

Author SHA1 Message Date
Sylvain Tricot ed5a614a26 Test jenkins 2020-11-17 14:57:36 +01:00
Sylvain Tricot db6705fe9a Jenkins test. 2020-11-17 14:34:32 +01:00
Sylvain Tricot 6ccafce21a updated Jenkisfile 2020-11-09 20:14:07 +01:00
Sylvain Tricot 6e231ba820 updated Jenkisfile 2020-11-09 20:10:21 +01:00
Sylvain Tricot 1bd1c0a9ce Small modification in the GUI.
epsi-builds/msspec_python3/pipeline/head There was a failure building this commit Details
The automatic resizing is not working very well in WXPython along with
matplotlib with the WxAgg backend. It is an attempt to improve this but
does not change anything unfortunately. This is a problem of WX + mpl.
2020-11-09 14:24:08 +01:00
Sylvain Tricot fac18395c4 Print more path information.
When setting calc.spec_parameters.iprint=3, Spec prints out a huge
amount of information about path taken into account using the series
expansion algorithm.
2020-11-09 14:19:36 +01:00
Sylvain Tricot 46d7290b0f Tiny change: added a debug log line 2020-11-09 14:16:39 +01:00
Sylvain Tricot 0ee6c2d791 Fix bug in spec (files not closed).
Some files were not closed in spec at the end of the program. This
caused some troubles in runing the phagen-spec cycle several times.

A function (CLOSE_ALL_FILES) was added in misc.f to force opened
units in the range [7,200] to be closed before exiting the main
subroutine.
2020-09-28 15:09:47 +02:00
Sylvain Tricot cd3fb05932 Add R-Factor support.
The Curve comparison is possible through R-Factor analysis.
Further comparison like shape analysis, similarity index... will
be included later.

Data export is now possible through the gui menu or as a method of
the Data object.
2020-07-22 18:32:15 +02:00
Sylvain Tricot 3a20719d19 Fix axes graphical bug in clusterviewer.
X, Y, Z axes were not in the right-hand orientation and the
Z-stack for drawing axes was not updated resulting in strange
graphical output (axis could "jump" over another instead of being
drawn behind)
2020-07-22 14:09:51 +02:00
Sylvain Tricot 54fc166eb4 Small changes in the SPRKKR STO.py example. 2020-07-09 10:56:59 +02:00
Sylvain Tricot 8e49d87a5a ignore VERSION file generated at compilation time 2020-07-07 17:36:39 +02:00
Sylvain Tricot 1bd26b3108 Add STO example in the tests folder 2020-07-07 17:36:06 +02:00
Sylvain Tricot 8e79e90fb5 Add multielement support for SPRKKR potential 2020-07-07 17:27:26 +02:00
Sylvain Tricot 47e35b3b7f New entry point in package.
A module (cli.py) is used to provide an entry point for the msspec
package. It is here to be PEX-compatible (https://github.com/pantsbuild/pex)
that may be used to provide a zero-install msspec distribution.
2020-06-15 16:48:01 +02:00
Sylvain Tricot bec694b16e Minor changes in sprkkr test example. 2020-06-15 16:39:44 +02:00
Sylvain Tricot 6a3492846f Add a f2py_path option to the scons script.
Sometimes the virtualenv version of f2py does not take precedence over
the system-wide one if any. It is now possible to enforce a given
f2py path.
2020-06-04 13:35:45 +02:00
Sylvain Tricot a9d42a81fe Merge branch 'devel' of https://git.ipr.univ-rennes1.fr/epsi/msspec_python3 into devel 2020-06-04 09:07:12 +02:00
Sylvain Tricot 9a0f1d7713 Work on installation.
Try to make it easier and pex compatible
2020-06-04 09:02:10 +02:00
Sylvain Tricot 22a1433726 Fix the install problem due to *.so suffix.
F2PY can generate inconsistent suffix for *.so files due to a
different version of numpy if not the same as the one used
in the virtualenv. The workaround is to remove the
"cpython-36m-x86_64-linux-gnu"-like part of the name. The import
mechanism works well without. This is a tiny hack though.
2020-05-29 16:13:02 +02:00
Sylvain Tricot 0cc4419f9b Remove WxPython from the list since the latest version is no more compatible
with msspec :-(
We need to install it manually using the wheel of their website for the moment
2020-05-26 13:52:15 +02:00
Sylvain Tricot d4e166cb6d Remove variant_dir in SConstruct.
The f2py *.so suffix is not consistent with python virtualenv version.
By using the source dir it is easier to fix manually since the *.so are not
installed
2020-05-26 13:50:23 +02:00
Sylvain Tricot 43886601e9 Set Phagen mode to "led" for EIG calculation.
Ensure that no core-hole is produced when doing an eigen values
calculation. This is done by setting calctype="led" in the phagen
input file.
2020-04-15 14:49:55 +02:00
Sylvain Tricot 19fd6033cc Remove config module
This module is not needed anymore.
2020-04-14 09:36:29 +02:00
Sylvain Tricot 860d8b8037 Fix import order in setup.py
The sys module should be imported first to decalre msspec
path as soon as possible. It enables to load the version module
necessary to avoid hardcoded version number in the setup.py file.
Please note that this import order is not pep8 compliant.
2020-04-14 09:32:25 +02:00
Sylvain Tricot 2906df4e29 Update README.
Add info about cloning the devel branch.
2020-04-14 09:31:28 +02:00
Sylvain Tricot 1f87c934b6 Test script for sprkkr/msspec cooperation. 2020-04-10 17:41:21 +02:00
Sylvain Tricot 8ebfd624e1 Add support for SPRKKR potential.
This is a first version for this option. Some work has still to be
done...
2020-04-10 17:36:25 +02:00
Sylvain Tricot 81459cfcfc Update doc and README info. 2020-03-31 18:29:41 +02:00
Sylvain Tricot 4702d0cb0c Simplify code building and package creation. 2020-03-31 18:28:08 +02:00
Sylvain Tricot e2ec1e8bcd Documentation is now generated by scons 2020-03-27 17:47:50 +01:00
Sylvain Tricot 927ac8a8a3 Allow the use of external potential files.
A new keyword in TMatrixParameters allows to use an external
file for the potential energy of atoms. It should be used like
this:
    calc.tmatrix_parameters.potential = 'spkkr'
    calc.tmatrix_parameters.potential_file = 'Cu.pot' # the name does not matter
2020-03-26 18:26:27 +01:00
Sylvain Tricot 15b344cf5f Update Phagen to its newest version (2.1).
The version 2.1 of Phagen is now used. Some updates in the
original code (bakup in phagen_scf_2.1_dp.f.orig file) have been
made to allow the making of the python extension.
Every changes are commented by a line begining by "CST"
2020-03-26 18:23:23 +01:00
Sylvain Tricot f7caa5eef7 Move to SCons building tool instead of make.
The scons python module is now used to build the code extension.
It is an all python solution and is easier to read than a Makefile
2020-03-26 18:19:26 +01:00
Sylvain Tricot 44b3145b65 Update SConstruct 2020-03-23 22:07:12 +01:00
Sylvain Tricot 61202f7a1f Update SConstruct 2020-03-22 00:06:43 +01:00
Sylvain Tricot fbe1b6917b Add a SConstruct file to compile spec with scons 2020-03-21 20:54:10 +01:00
Kevin Dunseath 1f11a61888 In eig_mat_ms.f, moved initialisation of IOUT2 and IOUT3 to before
the test on JE, otherwise they were not initialised for JE > 1
2020-03-16 15:45:51 +01:00
Sylvain Tricot 3187a4cb32 Change in version.py
To deal with the case of previously installed version of msspec,
the order in which the version is checked has changed.
1- test if we can infer the version from the SCM
2- check if a VERSION file exists
3- take the version from the distribution
2020-03-12 17:55:40 +01:00
Sylvain Tricot 162ffa87bd Fix bugs in packaging procedure.
The version is now not hardcoded anymore in the python module. We use
setuptools_scm or pkg_resources instead.
There was also a bug in the linkage for PED with matrix inversion using
external lapack.
Finally, the install script install now requirements and all requirements
are stored in the requirements.txt file. setup.py looks inside to set its
"install_requires" keyword.
2020-03-12 16:16:28 +01:00
Sylvain Tricot 519c48c61f Add some compilation options to the Makefile.
It is now possible to use an external lapack version. If using
directly the Makefile, use
   make pybinding USE_MKL=1 LINKER_FLAGS=-L$(MKLROOT) -lmkl_core -lmkl_intel_lp64 -lmkl_sequential
If using the install script, you can choose to edit each option of the compilation
2020-03-11 17:02:42 +01:00
Sylvain Tricot 81bd65a001 Fix some issues in using power method for EIG 2020-03-11 16:40:26 +01:00
Sylvain Tricot ff600a2e3d Fix some bugs in EIG calculator.
Now we can use either standard inversion or power method to
compute the spectral radii and plot the results.
2020-03-11 11:08:17 +01:00
Sylvain Tricot 4b63973c9f Add wxPython dependency check in install program. 2020-03-02 14:57:08 +01:00
Sylvain Tricot c6b27aa735 Update metadata in setup.py 2020-03-02 13:49:16 +01:00
Sylvain Tricot 5a817ab97d Add shared object for PED by Matrix inversion.
The PED spectroscopy by the matrix inversion algorithm is now
included.

This commit also includes:
 * some changes in default values in parameters.py for eigval_ipwm, eigval_method
   in SpecParameters and phi in SourceParameters
 * a modification in the cluster viewer: the mouse wheel allows to change the
   transparency and see the emitter
 * in utils.py, the hemispherical_cluster function has a new keyword that allows
   to create cylindrical clusters
2020-02-21 15:18:53 +01:00
Sylvain Tricot 27c772004c Remove a print in utils.py 2019-12-12 17:02:12 +01:00
Sylvain Tricot cedbfd823e Fix bugs for energy scan in EIG spectroscopy.
It was impossible to perform an energy scan in EIG spectroscopy.
The calculator and calcio modules were corrected.
We can now compute the spectral radius vs energy with and without
renormalization for EIG spectroscopy mode
The G_n, Sigma_n, Z_n and Lowdin K^2 methods are supported for
the inversion algorithm.

This commit fixes also several issues in the GUI and in the
hemispherical_cluster function
2019-12-12 16:45:12 +01:00
Kevin Dunseath 50a0bb7632 Replaced STOP by RETURN before error print statements in src/msspec/spec/fortran/eig/mi/do_main.f
In src/msspec/spec/fortran/eig/common/, modified eig_mat_ms.f to call subroutines in new
files diagonalize_matrix.f and renormalization.f to implement renormalization in the
eigenvalue "spectroscopy"
2019-12-11 15:12:58 +01:00
Sylvain Tricot 3c387c8585 Fix bug in Jenkinsfile
The "create setup file" failed because coverage module was not found.
It is installed in the virtualenv so the command load the venv first now.
2019-12-06 13:49:28 +01:00