Commit Graph

242 Commits

Author SHA1 Message Date
Sylvain Tricot eefa8468f7 Merge branch 'feature/Pi1' into devel 2025-02-27 18:07:27 +01:00
Sylvain Tricot 8fe37b1509 Merge branch 'alter_devel' into devel 2025-02-27 16:33:09 +01:00
Sylvain Tricot d863c98d75 Fix bug in Pi_1 renormalization.
The 'L_n' scheme is still not working yet but 'G_n', 'Sigma_n' and
'Pi_1' are working.
2025-02-27 15:47:32 +01:00
Sylvain Tricot 5c5c57be2b Merge tag '1.7.post14' into devel
version 1.7.post14
2025-02-26 13:08:38 +01:00
Sylvain Tricot 23d6481750 Merge branch 'release/1.7.post14' 2025-02-26 13:07:29 +01:00
Sylvain Tricot feaaabc9c4 Add kwargs to the pipeline function
The user can now provide a 'pipeline' function with only '**kwargs' in
arguments. It is more flexible and easier to write. The 'sweep_index'
keyword is always automatically added, so the 'passindex' option has
been removed since it was redundant with the index of the final
dataframe object.
The user-defined 'pipeline' function can now return anything. It is
no longer limited to ([x,],[y,]) format.
2025-02-26 11:15:54 +01:00
Sylvain Tricot db6ee27699 Add a shape_cluster function
This function is meant to replace the hemispherical_cluster
function dur to some bugs.
2025-02-26 11:15:03 +01:00
Sylvain Tricot 7ee9269c32 Change the F2PY command
F2PY was 'f2py3', but it is now 'f2py' to ensure using the
Fortran to Python builder of the current virtualenv.
2025-02-26 11:12:54 +01:00
Sylvain Tricot a98fd58385 Add a new 'nogui' compilation target
Makefile has a new 'nogui' target to build msspec without
any graphical user interface. Exporting data to text files
and *.png images are still possible. Useful for installing
on headless machines or if the gui is too difficult to
install (due to WxPython).
2025-02-26 11:10:17 +01:00
Sylvain Tricot 4aec48b4f6 Provide a "nogui" target in the installation.
It is possible to install msspec without gui, which
reduces a lot the number of dependencies. It is still possible
to export the results as *.png or to view the cluster with
the ase gui.
2024-10-22 12:39:54 +02:00
Sylvain Tricot 583eb08924 Change the stereographic projection radius scale
Now the scale is linear (as it should be...)
2024-03-11 09:51:47 +01:00
Sylvain Tricot 6c7038cdde Simplify the version mechanism.
No "setuptools-scm" anymore. The version is read by a subprocess
command or using package metadata or the VERSION file.
I still don't know if this is my last attempt to make the
version number reliable...
2023-12-01 10:24:21 +01:00
Sylvain Tricot 44b424e3c6 Increase the lmax in Phagen.
The lmax value is increased from 50 to 80 (for very high energies)
2023-12-01 10:22:06 +01:00
Sylvain Tricot af72a764e5 Fix the stereographic projection issue.
The matplotlib function changed. A new keyword is needed
to make the plotting "pcolormesh" function works. This keyword is
"shading='gouraud'"
2023-12-01 10:19:22 +01:00
Sylvain Tricot de70cc04a1 Update the Dockerfile.
Dockerfile has been modified to be compatible with the last
package versions of the Alpine distro
2023-12-01 10:17:09 +01:00
Sylvain Tricot 5f19198dec Remove the creation of output file "fort.354"
This file was created for debugging purposes by the renormalization
procedure. But since it had one line per diffusion path, its size
could rapidly become an issue.
The line is simply commented in the code.
2023-06-19 14:50:08 +02:00
Sylvain Tricot 893d012c99 Remove stderr output for 'git describe' call 2023-06-02 11:33:22 +02:00
Sylvain Tricot d61408e594 Remove 'print' calls in version.py 2023-06-02 11:14:21 +02:00
Sylvain Tricot 3811c4baf0 Restore pip.freeze and setup.py in src/
Since those files are still required for an
editable install (make devel)
2023-06-02 11:03:08 +02:00
Sylvain Tricot 7d9662ae37 Merge branch 'devel' of https://git.ipr.univ-rennes1.fr/epsi/msspec_python3 into devel
Required since changes were made uptream while trying to push local changes
2023-06-02 10:53:38 +02:00
Sylvain Tricot 5b76612c72 Change the version mechanism.
setuptools_scm is no longer used to get the version
of msspec. This commit is an attempt to sanitize this.
2023-06-02 10:49:09 +02:00
kmdunseath cb0b432041 Added file src/msspec/spec/fortran/eig/common/save_eigenvalues.f
which writes the eigenvalues to a fortran stream file called
eigenvalues.dat, facilitating reading by a python script.

Added call to save_eigenvalues in src/msspec/spec/fortran/eig/common/eig_mat_ms.f
2023-06-01 15:52:11 +02:00
Sylvain Tricot 39ba8c3983 Merge tag '1.7.post13' into devel
1.7.post13
2023-03-29 11:45:17 +02:00
Sylvain Tricot c9aa391634 Merge branch 'hotfix/1.7.post13' 2023-03-29 11:45:01 +02:00
Sylvain Tricot cf74431c31 Fix new dtype values for Numpy.
Numpy does not allow anylonger types np.int or np.float.
These are replaced simply by int and float python native types.
2023-03-29 11:41:52 +02:00
Sylvain Tricot f94426476d Add multistage build
To reduce the size of the Docker image. We use a multistage
build based on an alpine distro, the size is reduced by a
factor of 7.
2022-10-27 16:06:51 +02:00
Sylvain Tricot d1e52eae86 Switch to pyprojetc.toml
The packaging uses now the modern pyproject.toml and setup.cfg files.
The setup.py is deprecated.
2022-10-27 14:45:38 +02:00
Sylvain Tricot 6f254e688e Change the version mechanism 2022-10-26 17:15:24 +02:00
Sylvain Tricot 6785e7228a Fix attrdict issue when building wxPython>=4.2.0
When building wxPython, the "attrdict" package is needed, but is
now incompatible with Python > 3.10, due to the "collections" package.
The workaround is to ship a patched version of "attrdict" along with
msspec since "attrdict" isn't developped anylonger.
2022-10-25 16:24:23 +02:00
Sylvain Tricot c455b3bdfa Fix bug with matplotlib > 3.4.3
In newer versions of matplotlib, the autoscale was not working.
Changing "autoscale" to False simply fixes the bug...
2022-10-25 16:21:38 +02:00
Sylvain Tricot bbc8a92382 Merge tag '1.7.post12' into devel
1.7.post12
2022-10-06 18:27:24 +02:00
Sylvain Tricot 0699f193b3 Merge branch 'hotfix/1.7.post12' 2022-10-06 18:24:31 +02:00
Sylvain Tricot 2bdc9943b9 Fix numpy bug with alen()
* The numpy.alen() function is deprecated. We use len() instead
* The use of pkg_resources is discouraged. We use importlib.metadata
  instead. I also removed setuptools_scm get_version. I switch to
  a simple call to "git describe", easier now that we use git flow
* The build fails with python3.10 if compiling wx from sources.
  A fix in the Makefile will be proposed in a future commit.
2022-10-06 18:19:16 +02:00
Sylvain Tricot c0d5e97b35 Merge tag '1.7.post11' into devel
1.7.post11
2022-10-05 13:55:33 +02:00
Sylvain Tricot b6f2531999 Merge branch 'hotfix/1.7.post11' 2022-10-05 13:44:04 +02:00
Sylvain Tricot a4351f5606 Add a "light" installation of msspec
This is similar to a "devel" installation, but only the
virtualenv is created and the msspec package is installed
inside (not in edit mode). Bindings to the Fortran code
are not built.

It is intended to use msspec functions to create clusters but
without having to install wx.
2022-10-05 13:40:22 +02:00
Sylvain Tricot adb73f7fd8 Merge branch 'feature/polarization' into devel
epsi-builds/msspec_python3/pipeline/head There was a failure building this commit Details
2022-02-15 17:30:12 +01:00
Sylvain Tricot 9787e99d2e Added the binding for polarization keyword.
The polarization keyword may be None, 'linear_qOz', 'linear_xOy' or
'circular'. The IPOL parameter in spec.dat is set accordingly to
0, 1, -1 or 2 respectively.
2022-02-15 15:37:28 +01:00
Sylvain Tricot 4b75be2045 Changed 'python' command in sdist target.
epsi-builds/msspec_python3/pipeline/head There was a failure building this commit Details
The 'python' command might not be the true interpreter. It is
better to use the provided PYTHON_EXE command.
2022-02-15 15:34:30 +01:00
Sylvain Tricot 25fd8114a5 Merge branch 'feature/correlation_expansion' into devel
epsi-builds/msspec_python3/pipeline/head There was a failure building this commit Details
2022-02-15 11:01:22 +01:00
Sylvain Tricot 39074f75b6 Fixed some minor bugs.
epsi-builds/msspec_python3/pipeline/head There was a failure building this commit Details
Fixed some bugs. The correlation expansion version now compiles!
The shared object is imported in the calculator.py module.
2022-02-09 19:08:22 +01:00
Sylvain Tricot 6986dde636 Added main anf Makefile rules for CE. 2022-02-09 19:07:03 +01:00
Sylvain Tricot d09ba1b590 Added main_phd_ns_ce.f
epsi-builds/msspec_python3/pipeline/head There was a failure building this commit Details
This file was updated to be compatible with Python bindings.
The begining of the file is identical to the series expansion
version, so it was copied from there.
2022-02-09 14:35:26 +01:00
Sylvain Tricot f4f204305e Added lapack_axb.f
This file is the same as for the matrix inversion.
2022-02-09 14:34:52 +01:00
Sylvain Tricot 2b6a8b6e05 Added phddif_ce.f file.
The file was updated to be compatible with Python bindings.
2022-02-09 14:19:30 +01:00
Sylvain Tricot 9ebf6c6bc3 Added coumat.f and treat_phd.f
Those 2 files were copied from the phd_se version since
they are identical.
2022-02-09 14:18:22 +01:00
Sylvain Tricot 998fdbee88 Added ms_cor.f file.
The file ms_cor.f was updated to be compatible with Python
bindings.
2022-02-09 13:46:03 +01:00
Sylvain Tricot b1f34aef6a Added mpis.f file.
The file mpis.f was updated to be compatible with Python
bindings. The module CORREXP_MOD was created and is now
allocated in memalloc/allocation.f. The parameter NLMM was
added to dim_mod.f.
2022-02-09 13:39:28 +01:00
Sylvain Tricot 58e9731ffd Added gaunt_st.f file.
The file gaunt_st.f was updated to be compatible with Python
bindings. The module GAUNT_C was created.
2022-02-09 13:24:07 +01:00
Sylvain Tricot 0b889681d1 Added corexp1.f file
The file corexp1.f was updated to be compatible with Python
bindings.
2022-02-09 13:11:17 +01:00