Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
1c09dcf
update default parameters
maurov May 11, 2026
262cde1
type hinting: remove Union
maurov May 11, 2026
fe05c8b
make xs private
maurov May 11, 2026
0bb5f84
wip: add more keys
maurov May 11, 2026
447df20
add SCF params + make optimize optional
maurov May 11, 2026
6344fe6
bug fixes
maurov May 11, 2026
bf8269e
synchronize struct2xas from Larch
maurov May 12, 2026
a5def3c
add deprecation warnings
maurov May 12, 2026
911b1a4
renamed to examples
maurov May 12, 2026
8d778e4
migrate struct2xas examples
maurov May 12, 2026
f21695c
expose some parameters as attrs
maurov May 12, 2026
61ca7ad
temporary template
maurov May 12, 2026
a70f9fe
reintroduce self.xs for backward compatibility
maurov May 12, 2026
4ac1f5b
specify input tolerances for specegroup analyzer
maurov May 12, 2026
649eb22
add make_sbatch
maurov May 12, 2026
30050f9
started CHANGELOG.md
maurov May 12, 2026
69bed3c
add more tests
maurov May 12, 2026
e5097ef
lower set_rself logging to debug
maurov May 12, 2026
b15d775
catch pymatgen warnings
maurov May 12, 2026
c57f79d
suppress pymatgen warnings during tests
maurov May 12, 2026
0117eb5
add webapp tests from AI agent
maurov May 12, 2026
cca6a9a
jobname in the sbatch
maurov May 12, 2026
f5d321e
fix sbatch bugs
maurov May 12, 2026
5423cc4
migrate etst from larch
maurov May 13, 2026
81351df
fix test workflow
maurov May 13, 2026
a412398
update numpy
maurov May 13, 2026
97e6e4c
update deps
maurov May 13, 2026
c431190
fix workflow?
maurov May 13, 2026
29b2a57
remove conda installs, pip should be enough
maurov May 13, 2026
5c623c3
fix remove larch deps in struct2xas
maurov May 13, 2026
64ec4b8
deps for tests
maurov May 13, 2026
2c08f6a
install all
maurov May 13, 2026
2d70aa2
pip install in the good conda environment
maurov May 13, 2026
794b19f
mamba should have pip by default
maurov May 13, 2026
db9346a
fix bug in logger import
maurov May 13, 2026
439e0a1
include FDMNES optimize option in the webapp
maurov May 19, 2026
d70aba3
SCF enabled by `optimize
maurov May 19, 2026
d5bf8cc
update changes
maurov May 19, 2026
a1ba419
separate FEFF and FDMNES sections
maurov May 19, 2026
5e6110d
added Green formalism checkbox
maurov May 19, 2026
6b2214d
more documented template
maurov May 19, 2026
1117999
fix test
maurov May 19, 2026
35fc45e
minor fix sbatch
maurov May 19, 2026
f9acbc9
store jobs in user home
maurov May 19, 2026
475600d
use .larixite
maurov May 19, 2026
660712e
latest changes before release
maurov May 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ jobs:
channel-priority: true
activate-environment: anaconda-client-env
python-version: ${{ matrix.python-version }}
- name: Install conda dependencies
run: |
printenv
conda install -y -c conda-forge python=${{ matrix.python-version }} "numpy>=1.26" scipy pytest pytest-cov coverage
auto-activate-base: false
mamba-version: "*"
use-mamba: true
- name: Install larixite and dependencies with pip
run: |
pip install ".[dev,test,doc]"
python -m pip install --upgrade pip
python -m pip install ".[all]"
- name: Run test suite
run: |
cd tests
python -m pytest --cov=./ --cov-report=xml
python -m pytest --cov=larixite --cov-report=xml
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Changelog

Notable changes to this project will be documented in this file. The GitHub
Release Notes will also be useful.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

The versioning scheme followed is `YYYY.MAJOR.MINOR`:

- `YYYY`: year of release
- `MAJOR`: major feature (= change in API, no backward compatibility)
- `MINOR`: minor feature (= bug fixes, minor changes not affecting the API, backward compatible)

## [2026.1.0 - not released yet]

### web application

- Separate FEFF and FDMNES sections for XAS input generation
- FDMNES: added optimization checkbox
- FDMNES: added Green formalism checkbox
- Added more tests

### `fdmnes`

- Update to FDMNES version March 2026
- Add `make_sbatch` with a template for the ESRF SLURM scheduler
- Add `optimize : bool = False` option in `FdmnesXasInput` class to control if the input parameters are optimized (= more accurate calcuation, but slower) or not
- `write_input()` defaults to `$HOME/.larixite/fdmnes/{job_prefix}_{YYMMDD_HHMMSS}`

### `struc2xas`

- Fully migrated from `larch.xrd.struc2xas` (and removed there)
- Make `struc2xas` *deprecated* and start refactoring

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"\n",
"- Author: Mauro Rovezzi\n",
"- Contact: mauro.rovezzi@esrf.fr\n",
"- Status: in progress\n",
"- Last update: 2025-05-14"
"- Status: *in progress...*\n",
"- Last update: 2026-05-19"
]
},
{
Expand Down Expand Up @@ -48,7 +48,7 @@
"\n",
"abs = \"Zn\" #: select the absorber\n",
"\n",
"fdmnes_executable = \"/home/mauro/local/fdmnes_Linux_2024_11_14/fdmnes_Linux/fdmnes_linux64\" #: path to fdmnes executable (TODO: set your own path)"
"fdmnes_executable = \"fdmnes\" #: path to fdmnes executable (TODO: set your own path)"
]
},
{
Expand Down Expand Up @@ -130,7 +130,7 @@
"metadata": {},
"outputs": [],
"source": [
"f = FdmnesXasInput(sg, absorber=abs, struct_type=\"crystal\", radius=5)\n",
"f = FdmnesXasInput(sg, absorber=abs, struct_type=\"crystal\", radius=5, erange=\"-5 0.5 10\", optimize=True)\n",
"text = f.get_input()\n",
"print(text)"
]
Expand All @@ -148,7 +148,7 @@
"metadata": {},
"outputs": [],
"source": [
"outdir = f.write_input()"
"jobdir = f.write_input()"
]
},
{
Expand All @@ -157,7 +157,16 @@
"metadata": {},
"outputs": [],
"source": [
"! cd {outdir.as_posix()} && {fdmnes_executable}"
"f.write_sbatch()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"! module purge && module load fdmnes && cd {jobdir.as_posix()} && {fdmnes_executable}\n"
]
},
{
Expand All @@ -180,7 +189,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "sloth2411",
"display_name": "sloth2507",
"language": "python",
"name": "python3"
},
Expand All @@ -194,7 +203,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.8"
"version": "3.12.11"
}
},
"nbformat": 4,
Expand Down
Loading
Loading