-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
247 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: CD | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build_package: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.12" ] | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'poetry' | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Build Package | ||
run: poetry build | ||
|
||
- name: Upload wheels to artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist/* | ||
|
||
pypi-publish: | ||
name: Upload release to PyPI | ||
needs: build_package | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/glassure/ | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
|
||
- name: check the dist folder | ||
run: ls dist | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## 1.4.1 (2023/10/27) | ||
|
||
### Bug fixes: | ||
- fix error with s0 auto calculation when using brown hubbell form factors. | ||
- fix python compatibility for 3.9 and 3.10 | ||
|
||
## 1.4.0 (2023/09/03) | ||
|
||
### New features: | ||
- the chosen scattering factor source can now be applied per configuration and are not global anymore | ||
- added support for ionic scattering factors when using the brown et al. 2006 scattering factors | ||
- calculations now also work correctly without specifying a background pattern | ||
- added typehints to the core calculation functions | ||
- the normalization method can now be chosen in the GUI - previously only integral was available and now also | ||
fitting can be chosen | ||
- the Structure Factor calculation method can be chosen in the GUI - now Faber-Ziman and Ashcroft-Langreth are | ||
available | ||
- fft has been set to be default for the Fourier transform in the GUI and a checkbox has been added to also allow | ||
the usage of integration method when necessary | ||
- the extrapolation of the S(Q) to zero in the GUI will now calculate the theoretical value for S(Q) at Q=0, using | ||
the form factors - the value can also be set manually (e.g. for data with very low compressibility) | ||
- the current configurations can be saved as a json file and loaded later for continuing work on these data, or as | ||
documentation for the data processing | ||
- created basic documentation for the core functions, available under (glassure.readthedocs.io) | ||
|
||
|
||
### Bug fixes: | ||
- consistent naming for patterns - file endings will now always be omitted | ||
- removing a configuration now correctly switches to the correct configuration and updates the parameters in the gui | ||
- renaming configurations is now persistent after removing a configuration | ||
- visibility of configurations is now persistent after removing or freezing a configuration | ||
- float numbers can now be entered with a comma as decimal separator, it will be converted to a dot automatically | ||
- data and background patterns are correctly updated in the plot when switching between configurations | ||
|
||
## 1.3.0 (2023/04/26) | ||
|
||
### New features: | ||
- changed to pyqt 6 which should reduce issues with high dpi screens | ||
- added support for brown et al. 2006 scattering factors (from international tables of crystallography) and hubbell et | ||
al.1975 compton scattering intensities |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# -*- coding: utf8 -*- | ||
__version__ = '1.4.0' | ||
__version__ = '1.4.1' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from enum import Enum | ||
|
||
|
||
class SqMethod(Enum): | ||
""" | ||
Enum class for the different methods to calculate the structure factor. | ||
""" | ||
FZ = 'FZ' | ||
AL = 'AL' | ||
|
||
|
||
class NormalizationMethod(Enum): | ||
""" | ||
Enum class for the different methods to perform an intensity normalization. | ||
""" | ||
INTEGRAL = 'integral' | ||
FIT = 'fit' | ||
|
||
|
||
class FourierTransformMethod(Enum): | ||
""" | ||
Enum class for the different methods to perform a Fourier transform. | ||
""" | ||
FFT = 'fft' | ||
INTEGRAL = 'integral' |
Oops, something went wrong.