Commit Graph

79 Commits

Author SHA1 Message Date
Sylvain Tricot a657b1874e Changed memory requirements. 2022-02-08 15:19:26 +01:00
Sylvain Tricot 925d694099 Added 'other_parameters' keyword to any scan.
epsi-builds/msspec_python3/pipeline/head There was a failure building this commit Details
This keyword is a dictionary allowing any option
to be passed to Phagen or Spec just before runing
the calculation. It is usefull to pass special options
that are for example set automatically otherwise.
2021-11-30 16:26:10 +01:00
Sylvain Tricot 7567b920a1 Add Lapack/Blas compilation flag. 2021-11-30 16:21:05 +01:00
Sylvain Tricot 369e743197 Removed all f-strings.
By replacing f-strings by the standard ".format" call,
the package can be now compatible with python3.5
2021-09-27 17:49:48 +02:00
Sylvain Tricot df5c0de8b7 Fix bug, the rank was not set properly 2021-07-21 23:06:12 +02:00
Sylvain Tricot 0e04dd4a75 Remove config of logging in looper
epsi-builds/msspec_python3/pipeline/head There was a failure building this commit Details
Because it overriveded the global logging level...
2021-07-21 10:45:34 +02:00
Sylvain Tricot 3743cb8d17 Changed return values of Looper.run
Instead of returning a panda dataframe, return both a list
of [x0, y0, x1, y1,...] values for all the calculations and the
corresponding dict of parameters
2021-07-20 16:45:37 +02:00
Sylvain Tricot 1899020178 Small changes in looper.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
2021-06-24 09:13:47 +02:00
Sylvain Tricot 605f3fda0e Increased the max number of atoms in phagen. 2021-06-24 09:12:25 +02:00
Sylvain Tricot 640746a81f cutoff_factor is now a public parameter.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
2021-04-02 08:44:58 +02:00
sylvain tricot 195d5fd72f Add a module for multiprocessing.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
2021-04-01 18:37:19 +02:00
Sylvain Tricot 94ce7648d4 Upgrade Phagen to 2.2 and 2.3 versions
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
Thos versions fix a bug in the routine that find zeros
of the wavefunction
2021-03-22 08:39:48 +01:00
Sylvain Tricot a62f78f2a7 Fix use of deprecated MenuItem.GetText().
Replaced by MenuItem.GetItemLabelText()
2021-02-22 19:02:31 +01:00
Sylvain Tricot a4c13d3bdb Update the Readme file.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
I updated the information in the Readme file to provide
detailed steps to build msspec with GNU make.
2021-02-22 15:49:57 +01:00
Sylvain Tricot ebb450024b Update msspec against its dependencies.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
MsSpec is now compatible with latest version of WX, of numpy,
scipy, matplotlib...
2021-02-19 08:22:47 +01:00
Sylvain Tricot 052cf749cf Clusterviewer with WXWidgets is renamed 2021-01-25 14:01:34 +01:00
Sylvain Tricot f70b1af2f3 Continue with wx->gtk portage.
Callbacks for mouse events are "almost" working
in this commit.
2021-01-25 13:59:03 +01:00
Sylvain Tricot 19cd231b21 Begin portage of clusterviewer from Wx to Gtk3.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
For the moment changes are in the Python file named
clusterviewer_gi.py.
2020-12-15 16:12:40 +01:00
Sylvain Tricot 8eaf76629d start porting the code from WX to GTK3.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
2020-12-08 21:29:30 +01:00
Sylvain Tricot d4ed926e55 Work on Makefiles to make install easier...
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
2020-12-02 18:18:47 +01:00
Sylvain Tricot e801582beb Fix missing dependencies in EIG Makefiles 2020-12-02 08:49:06 +01:00
Sylvain Tricot 70eef0af8a Trying to fix NaN for lmax > 30.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
It is impossible to compute the crosssection if LMAX > 30.
This is due to a lack of precision in the djmn.f subroutine which
is written in simple precision. This commit is a first step to promote
this subroutine and all its dependensices to doucle precision.
2020-12-01 11:13:24 +01:00
Sylvain Tricot 50219b9f45 Work on topmost Makefile (unittests and install targets)
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
Just began to rewrite the topmost Makefile which will provide
targets for:
  * runing the tests
  * creating the Python venv
  * building and installing the code
  * building the manual and the website

Makefiles in subfolder were also upgraded to fix some issues in
target filenames.
2020-11-30 16:39:29 +01:00
Sylvain Tricot d7b6ca5b84 Change the reading format for the tl.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
2020-11-26 09:52:14 +01:00
Sylvain Tricot b8047274ed Fix the 'Below is the bug' bug in Phagen 2020-11-26 09:50:57 +01:00
Sylvain Tricot 13593b8870 Revert back to GNU Make for building.
epsi-builds/msspec_python3/pipeline/head This commit looks good Details
Makefiles are easier to maintain, I eventually prefer using GNU Make
instead of scons. SConstruct files will be removed when makefiles will
be ready in a future commit.
2020-11-24 09:57:35 +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 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 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 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 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 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