Skip to content

Commit 3dee77b

Browse files
committed
Merge branch 'release/2.0.0' into main
2 parents ab99bc9 + d76a983 commit 3dee77b

File tree

220 files changed

+5943
-10338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+5943
-10338
lines changed

.coveragerc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[run]
22
omit =
3-
glassure/tests/*
4-
glassure/core/_version.py
3+
glassure/tests/*

.github/workflows/CD.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
permissions:
5252
id-token: write
5353
steps:
54-
- uses: actions/download-artifact@v3
54+
- uses: actions/download-artifact@v4.1.7
5555
with:
5656
name: wheels
5757
path: dist

.github/workflows/CI.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ jobs:
66
unit-tests:
77
runs-on: ubuntu-latest
88

9-
#----------------------------------------------
10-
# set up QT environment variables
11-
#----------------------------------------------
12-
env:
13-
QT_QPA_PLATFORM: offscreen
14-
159
strategy:
1610
fail-fast: false
1711
matrix:
18-
python-version: [ "3.9", "3.10", "3.11" ]
12+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1913

2014
steps:
2115
#----------------------------------------------
@@ -24,27 +18,14 @@ jobs:
2418
- name: Check out repository
2519
uses: actions/checkout@v3
2620

27-
- name: Install poetry
28-
run: pip install poetry
29-
3021
- name: Set up Python
3122
uses: actions/setup-python@v4
3223
with:
3324
python-version: ${{ matrix.python-version }}
34-
cache: 'poetry'
35-
36-
#----------------------------------------------
37-
# ----- install apt dependencies -----
38-
#----------------------------------------------
39-
- name: Install Apt Dependencies
40-
run: |
41-
sudo apt-get update
42-
sudo apt-get install libxkbcommon-x11-0 libxkbcommon-x11-dev libxcb-xinerama0 \
43-
libxkbcommon-dev libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev \
44-
libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev \
45-
libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-shape0-dev \
46-
libxcb-randr0-dev libxcb-render-util0-dev libegl1
47-
25+
cache: "pip"
26+
27+
- name: Install Poetry
28+
run: curl -sSL https://install.python-poetry.org | python3 -
4829

4930
#----------------------------------------------
5031
# install dependencies

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ docs/_build/
5656
target/
5757

5858
##My stuff
59-
*.png
59+
*.png

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,20 @@
33

44
# Glassure
55

6-
7-
An API and GUI program for data analysis of total x-ray diffraction data.
6+
A Python API for data analysis of total x-ray diffraction data.
87
It performs background subtraction, Fourier transform and optimization of
98
experimental data.
109

10+
**Warning**, the upgrade from version 1.4.5 to 2.0.0 has removed the GUI - which came with glassure. A new WebGUI based on the version 2 API is available under [glassure.vercel.app](https://glassure.vercel.app).
11+
12+
## Documentation
13+
14+
The documentation can be found [here](https://glassure.readthedocs.io/en/latest/).
15+
16+
## Changelog
17+
18+
The changelog can be found [here](https://glassure.readthedocs.io/en/latest/changelog.html).
19+
1120
## Maintainer
1221

1322
Clemens Prescher ([email protected])

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 2.0.0 (2025/07/09)
2+
3+
### New features
4+
- complete rework of the codebase
5+
- removed the GUI from the glassure package
6+
- removed the Ashcroft-Langreth structure factor calculation method - which was not implemented correctly before
7+
- added configurations which contain all the information for a single data analysis
8+
- added more in depth API documentation
9+
110
## 1.4.5 (2023/06/20)
211

312
### Bugfixes

docs/api.ipynb

Lines changed: 240 additions & 144 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
glassure.core.calc module
1+
glassure.calc module
22
=========================
33

4-
.. automodule:: glassure.core.calc
4+
.. automodule:: glassure.calc
55
:members:
66
:undoc-members:
77
:show-inheritance:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
glassure.configuration module
2+
=============================
3+
4+
This module contains all configurations classes necessary for the glassure package.
5+
The main entrypoints are the :class:`glassure.configuration.CalculationConfig` and :class: `glassure.configuration.DataModel`
6+
pydantic models containing all necessary information for the analysis. These two configurations can then be used analysis
7+
parameters for the :meth:`glassure.calc.calculate_pdf` calculate to perform the analysis. The output of the calculation
8+
will be a :class:`glassure.configuration.Result` object containing the results of the analysis.
9+
The models are then further split into submodels for better readability and maintainability.
10+
11+
.. automodule:: glassure.configuration
12+
:members:
13+
:undoc-members:
14+
:show-inheritance:

docs/apidoc/glassure.core.optimization.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)