Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to build out unit cells from CIF files #11

Merged
merged 102 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
656e9e1
Add _str2num and _deg2rad _utils
janbridley Apr 5, 2024
1e74eb7
Add cif file keys list to sample data
janbridley Apr 5, 2024
c369fd1
Add key_value_pairs reader and cell_params reader to parse
janbridley Apr 5, 2024
672c4e3
Add tests for key reader
janbridley Apr 5, 2024
e0b693f
Add tests for new utils
janbridley Apr 5, 2024
79350fc
Reorder test_key_reader
janbridley Apr 5, 2024
04b3344
Improve documentation for regex
janbridley Apr 5, 2024
b59eab1
Add warnings and tests to read_key_value_pairs
janbridley Apr 5, 2024
87303b9
Restore trailing spaces to downloaded CIF files
janbridley Apr 8, 2024
90120c7
Properly track keys containing "-"
janbridley Apr 8, 2024
d4203da
Improved tests for key value pair reader
janbridley Apr 8, 2024
8c3c014
Add key-value tests for INTENTIONALLY_BAD_CIF.cif
janbridley Apr 8, 2024
9c91bde
Fix docs
janbridley Apr 8, 2024
9aaba90
Enable top of page button
janbridley Apr 8, 2024
6ea7882
Update brand primary colors
janbridley Apr 8, 2024
0169783
Improve docs for parse.py
janbridley Apr 8, 2024
a404d19
Add __future__.annotations imports to relevant files
janbridley Apr 9, 2024
4903f80
Fix typo
janbridley Apr 10, 2024
a333c5c
Seperate _errors from _templates
janbridley Apr 10, 2024
b0f386b
Clean up docstring return types
janbridley Apr 10, 2024
96acd85
Add PDB cif to test suite
janbridley Apr 10, 2024
a6ebf33
Fix test in test_key_reader
janbridley Apr 10, 2024
f8dbaa3
Clean up patterns.py and add remove_nondelimiting_whitespace
janbridley Apr 10, 2024
b1e0bdd
Update table_reader to use remove_nondelimiting_whitespace
janbridley Apr 10, 2024
51328be
Allow value reader to read mmCIF files
janbridley Apr 10, 2024
06abb57
Update test_table_reader.py
janbridley Apr 10, 2024
98a2201
Remove seperate mmCIF reader
janbridley Apr 10, 2024
93909f8
Add docs for patterns module
janbridley Apr 10, 2024
d4d931b
Fix cast_to_float default value
janbridley Apr 10, 2024
1d86db9
Update docs
janbridley Apr 10, 2024
0528d36
Add documentation for __call__
janbridley Apr 10, 2024
40c7fb8
Update regex_filter param documentation
janbridley Apr 10, 2024
56c1e21
Fix typo
janbridley Apr 10, 2024
853a166
Remove unneeded comment
janbridley Apr 10, 2024
8b19268
Fix default values in docs
janbridley Apr 10, 2024
fd295a8
Fix typo
janbridley Apr 10, 2024
3e5e77c
Minor doc fix
janbridley Apr 10, 2024
ffa59a7
Fix typo
janbridley Apr 10, 2024
7f80005
Remove duplicate Introduction from index
janbridley Apr 10, 2024
1e8c01d
Remove duplicate entries from toc
janbridley Apr 10, 2024
56d80de
Add source for PDB cif
janbridley Apr 10, 2024
5d47d10
Add mmCIF flag to read_cell_params
janbridley Apr 10, 2024
dfbf5ed
Add quickstart.rst
janbridley Apr 10, 2024
28a7025
Fix comment in quickstart
janbridley Apr 10, 2024
e60cd1b
Remove unnecessary line in quickstart
janbridley Apr 10, 2024
6e82566
Fix image path in README.rst
janbridley Apr 11, 2024
a772261
Update regex documentation
janbridley Apr 11, 2024
7d03311
Fix CI
janbridley Apr 11, 2024
1f05fd7
Update __init__.py
janbridley Apr 15, 2024
0ddaa48
Add unitcells module
janbridley Apr 15, 2024
e1616ab
Add documentation links
janbridley Apr 15, 2024
04b19a3
Fix doc file naming
janbridley Apr 15, 2024
451fd8b
Remove resolved TODO
janbridley Apr 15, 2024
bba2849
Add top level description to unitcells
janbridley Apr 15, 2024
8d243ad
Default regex filters to None
janbridley Apr 15, 2024
5fece58
Fix default setting for nondelimiting_whitespace_replacement
janbridley Apr 15, 2024
85b7dff
Remove outdated comment
janbridley Apr 15, 2024
f4aefa7
Fix tests
janbridley Apr 15, 2024
43f0263
Add tests for symmetry operations
janbridley Apr 15, 2024
a713c06
Fix precision issues
janbridley Apr 15, 2024
a0a01cd
Increase string lines threshold
janbridley Apr 15, 2024
8c7f2c0
Remove in-file tests
janbridley Apr 15, 2024
8d5969d
Return unrounded values
janbridley Apr 15, 2024
923ce2c
Add test_extract_unit_cell
janbridley Apr 15, 2024
f96c7a9
Add distance calculation util for uniqueness comparison
janbridley Apr 26, 2024
b124cac
Add function to build basis vector matrix from box
janbridley Apr 26, 2024
cbf17ba
Update unitcell builder and rename to extract_atomic_positions
janbridley Apr 26, 2024
6ab5cd6
Update docstrings
janbridley Apr 26, 2024
e0eccb9
Clarify function naming
janbridley Apr 26, 2024
9bb9b2f
Change space group for IncStrDb_Ccmm.cif to standard format
janbridley Apr 26, 2024
a19b068
Remove unnecessary transpose in basis vector function
janbridley Apr 26, 2024
b3803be
Update unitcell tests to use ase
janbridley Apr 26, 2024
bf532c6
Filter out ase warnings
janbridley Apr 26, 2024
037d5d8
Switch catch_warnings to filterwarnings for python 3.9 compat
janbridley Apr 26, 2024
a1382d3
Add pytest to test requirements
janbridley Apr 27, 2024
b45218d
Fix top of page buttons and add view link
janbridley May 10, 2024
2ab4288
Fix logo on README.rst
janbridley May 10, 2024
e4cbbb8
Merge remote-tracking branch 'origin/main' into feature/supercells
janbridley May 22, 2024
e35ed1b
Merge branch 'main' into feature/supercells
janbridley Jun 3, 2024
bdc832d
Add readable assertion error in unitcells.py
janbridley Jun 10, 2024
c30d23e
Improve assertion error in _safe_eval
janbridley Jun 10, 2024
0632944
Remove unused distance-merge code
janbridley Jun 10, 2024
a023be2
Merge branch 'main' into feature/supercells
janbridley Dec 19, 2024
d65e094
Improve CI resilience
janbridley Dec 19, 2024
ccb13fd
Remove dependabot
janbridley Dec 19, 2024
e562353
Add requirements.txt for py3.6 and py3.7
janbridley Dec 19, 2024
d50b3ee
Update requirements.yaml CI action
janbridley Dec 19, 2024
78fbd68
Remove temporary lines from ci
janbridley Dec 19, 2024
9a2a5e7
Add future-annotations package
janbridley Dec 19, 2024
e0f186b
Fix annotations
janbridley Dec 19, 2024
22b145f
Disable testing on py3.6
janbridley Dec 20, 2024
f046aa0
Update doc requirements
janbridley Dec 20, 2024
3a3dbde
Decapitalize changelog and credits
janbridley Dec 20, 2024
e91767d
Swap tests to us UV
janbridley Dec 20, 2024
77184f6
Fix uv version
janbridley Dec 20, 2024
f3ae2d1
Clean up CI script
janbridley Dec 20, 2024
b85b73b
Activate venv
janbridley Dec 20, 2024
606be0b
Remove setup.py
janbridley Dec 20, 2024
a1be853
Fix CI
janbridley Dec 20, 2024
446f441
Clean up CI
janbridley Dec 20, 2024
cefdb5c
Simplify CI
janbridley Dec 20, 2024
7385f4b
Clean up overview
janbridley Dec 20, 2024
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
55 changes: 0 additions & 55 deletions .github/dependabot.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/requirements-3.10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --python-version=3.10 pyproject.toml tests/requirements.in
ase==3.23.0
# via -r tests/requirements.in
contourpy==1.3.1
# via matplotlib
cycler==0.12.1
# via matplotlib
exceptiongroup==1.2.2
# via pytest
fonttools==4.55.3
# via matplotlib
gemmi==0.7.0
# via -r tests/requirements.in
iniconfig==2.0.0
# via pytest
kiwisolver==1.4.7
# via matplotlib
matplotlib==3.10.0
# via ase
numpy==2.2.0
# via
# parsnip (pyproject.toml)
# ase
# contourpy
# matplotlib
# scipy
packaging==24.2
# via
# matplotlib
# pytest
pillow==11.0.0
# via matplotlib
pluggy==1.5.0
# via pytest
pyparsing==3.2.0
# via matplotlib
pytest==8.3.4
# via -r tests/requirements.in
python-dateutil==2.9.0.post0
# via matplotlib
scipy==1.14.1
# via ase
six==1.17.0
# via python-dateutil
tomli==2.2.1
# via pytest
43 changes: 43 additions & 0 deletions .github/requirements-3.11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --python-version=3.11 pyproject.toml tests/requirements.in
ase==3.23.0
# via -r tests/requirements.in
contourpy==1.3.1
# via matplotlib
cycler==0.12.1
# via matplotlib
fonttools==4.55.3
# via matplotlib
gemmi==0.7.0
# via -r tests/requirements.in
iniconfig==2.0.0
# via pytest
kiwisolver==1.4.7
# via matplotlib
matplotlib==3.10.0
# via ase
numpy==2.2.0
# via
# parsnip (pyproject.toml)
# ase
# contourpy
# matplotlib
# scipy
packaging==24.2
# via
# matplotlib
# pytest
pillow==11.0.0
# via matplotlib
pluggy==1.5.0
# via pytest
pyparsing==3.2.0
# via matplotlib
pytest==8.3.4
# via -r tests/requirements.in
python-dateutil==2.9.0.post0
# via matplotlib
scipy==1.14.1
# via ase
six==1.17.0
# via python-dateutil
43 changes: 43 additions & 0 deletions .github/requirements-3.12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --python-version=3.12 pyproject.toml tests/requirements.in
ase==3.23.0
# via -r tests/requirements.in
contourpy==1.3.1
# via matplotlib
cycler==0.12.1
# via matplotlib
fonttools==4.55.3
# via matplotlib
gemmi==0.7.0
# via -r tests/requirements.in
iniconfig==2.0.0
# via pytest
kiwisolver==1.4.7
# via matplotlib
matplotlib==3.10.0
# via ase
numpy==2.2.0
# via
# parsnip (pyproject.toml)
# ase
# contourpy
# matplotlib
# scipy
packaging==24.2
# via
# matplotlib
# pytest
pillow==11.0.0
# via matplotlib
pluggy==1.5.0
# via pytest
pyparsing==3.2.0
# via matplotlib
pytest==8.3.4
# via -r tests/requirements.in
python-dateutil==2.9.0.post0
# via matplotlib
scipy==1.14.1
# via ase
six==1.17.0
# via python-dateutil
43 changes: 43 additions & 0 deletions .github/requirements-3.13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --python-version=3.13 pyproject.toml tests/requirements.in
ase==3.23.0
# via -r tests/requirements.in
contourpy==1.3.1
# via matplotlib
cycler==0.12.1
# via matplotlib
fonttools==4.55.3
# via matplotlib
gemmi==0.7.0
# via -r tests/requirements.in
iniconfig==2.0.0
# via pytest
kiwisolver==1.4.7
# via matplotlib
matplotlib==3.10.0
# via ase
numpy==2.2.0
# via
# parsnip (pyproject.toml)
# ase
# contourpy
# matplotlib
# scipy
packaging==24.2
# via
# matplotlib
# pytest
pillow==11.0.0
# via matplotlib
pluggy==1.5.0
# via pytest
pyparsing==3.2.0
# via matplotlib
pytest==8.3.4
# via -r tests/requirements.in
python-dateutil==2.9.0.post0
# via matplotlib
scipy==1.14.1
# via ase
six==1.17.0
# via python-dateutil
56 changes: 56 additions & 0 deletions .github/requirements-3.6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# manual, required to use __future__ annotations style in py3.6
ase==3.22.1
# via -r tests/requirements.in
cycler==0.11.0
# via matplotlib
exceptiongroup==0.0.0a0
# via pytest
fonttools==4.27.1
# This file was MANUALLY MODIFIED based on an initial state generated via the following command:
# uv pip compile --python-version=3.7 pyproject.toml tests/requirements.in
future-annotations==1.0.0
# via matplotlib
gemmi==0.6.3
# via -r tests/requirements.in
importlib-metadata==4.8.3
# via
# pluggy
# pytest
iniconfig==1.1.1
# via pytest
kiwisolver==1.3.1
# via matplotlib
matplotlib==3.3.4
# via ase
numpy==1.19.5
# via
# parsnip (pyproject.toml)
# ase
# matplotlib
# scipy
packaging==21.3
# via
# matplotlib
# pytest
pillow==8.4.0
# via matplotlib
pluggy==1.0.0
# via pytest
pyparsing==3.1.4
# via matplotlib
pytest==7.0.1
# via -r tests/requirements.in
python-dateutil==2.9.0.post0
# via matplotlib
scipy==1.5.4
# via ase
six==1.17.0
# via python-dateutil
tomli==1.2.3
# via pytest
typing-extensions==4.1.1
# via
# importlib-metadata
# kiwisolver
zipp==3.6.0
# via importlib-metadata
54 changes: 54 additions & 0 deletions .github/requirements-3.7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --python-version=3.7 pyproject.toml tests/requirements.in
ase==3.22.1
# via -r tests/requirements.in
cycler==0.11.0
# via matplotlib
exceptiongroup==1.2.2
# via pytest
fonttools==4.38.0
# via matplotlib
gemmi==0.6.7
# via -r tests/requirements.in
importlib-metadata==6.7.0
# via
# pluggy
# pytest
iniconfig==2.0.0
# via pytest
kiwisolver==1.4.5
# via matplotlib
matplotlib==3.5.3
# via ase
numpy==1.21.6
# via
# parsnip (pyproject.toml)
# ase
# matplotlib
# scipy
packaging==24.0
# via
# matplotlib
# pytest
pillow==9.5.0
# via matplotlib
pluggy==1.2.0
# via pytest
pyparsing==3.1.4
# via matplotlib
pytest==7.4.4
# via -r tests/requirements.in
python-dateutil==2.9.0.post0
# via matplotlib
scipy==1.7.3
# via ase
six==1.17.0
# via python-dateutil
tomli==2.0.1
# via pytest
typing-extensions==4.7.1
# via
# importlib-metadata
# kiwisolver
zipp==3.15.0
# via importlib-metadata
51 changes: 51 additions & 0 deletions .github/requirements-3.8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This file was autogenerated by uv via the following command:
# uv pip compile --python-version=3.8 pyproject.toml tests/requirements.in
ase==3.23.0
# via -r tests/requirements.in
contourpy==1.1.1
# via matplotlib
cycler==0.12.1
# via matplotlib
exceptiongroup==1.2.2
# via pytest
fonttools==4.55.3
# via matplotlib
gemmi==0.7.0
# via -r tests/requirements.in
importlib-resources==6.4.5
# via matplotlib
iniconfig==2.0.0
# via pytest
kiwisolver==1.4.7
# via matplotlib
matplotlib==3.7.5
# via ase
numpy==1.24.4
# via
# parsnip (pyproject.toml)
# ase
# contourpy
# matplotlib
# scipy
packaging==24.2
# via
# matplotlib
# pytest
pillow==10.4.0
# via matplotlib
pluggy==1.5.0
# via pytest
pyparsing==3.1.4
# via matplotlib
pytest==8.3.4
# via -r tests/requirements.in
python-dateutil==2.9.0.post0
# via matplotlib
scipy==1.10.1
# via ase
six==1.17.0
# via python-dateutil
tomli==2.2.1
# via pytest
zipp==3.20.2
# via importlib-resources
Loading
Loading