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

Addition of molSimplify structure overhaul #279

Closed
wants to merge 479 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
479 commits
Select commit Hold shift + click to select a range
777c36b
Merge pull request #193 from hjkgrp/MOF_code_update
gianmarco-terrones Nov 14, 2023
432ee72
added Gval option to MOF RACs
gianmarco-terrones Dec 8, 2023
81de14c
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Dec 8, 2023
07dffb1
Merge pull request #194 from hjkgrp/Gval_MOF
gianmarco-terrones Dec 8, 2023
0ecbea3
Removed duplicate file
ralf-meyer Dec 15, 2023
7861aae
Merge remote-tracking branch 'origin/HEAD' into additional_tests
ralf-meyer Dec 16, 2023
06040bf
Add test cases for MOF_descriptors
ralf-meyer Dec 16, 2023
91d0b45
Remove checkpoint file
ralf-meyer Dec 17, 2023
450c8dd
Move pymatgen import to get_primitive() function
ralf-meyer Dec 17, 2023
8f3ed8f
Added more type hints
ralf-meyer Dec 17, 2023
877481d
Convert .cif files to primitive unit cell
ralf-meyer Dec 17, 2023
2912003
Add references for the MOF csv files
ralf-meyer Dec 17, 2023
22ff357
Remove unnecessay code
ralf-meyer Dec 17, 2023
65ee867
Replace df.append with pd.concat
ralf-meyer Dec 18, 2023
93fbfe2
Remove dead code
ralf-meyer Dec 19, 2023
c33449c
Add test case for MOFs from Aditya's JACS paper
ralf-meyer Dec 20, 2023
e8ee975
Added a line to check geomnames (#195)
davut-m Jan 24, 2024
71c2af1
Remove print statement
jwtoney Feb 5, 2024
e5570d6
Flake fixes
jwtoney Feb 5, 2024
9e42836
Merge pull request #197 from hjkgrp/jwt_edits
ralf-meyer Feb 5, 2024
4836f07
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 5, 2024
e96d424
Merge pull request #199 from hjkgrp/pre-commit-ci-update-config
ralf-meyer Feb 5, 2024
12adbf5
Updated get_geometry to properly classify edge / sandwich ligands and…
jwtoney Feb 6, 2024
5ad401e
Update fragment_MOFs_for_pormake.py
gianmarco-terrones Feb 10, 2024
650a222
Fix get_geometry_type default argument
ralf-meyer Feb 13, 2024
8ecc724
Add from_smiles constructor
ralf-meyer Feb 13, 2024
e5a4d04
Merge pull request #201 from hjkgrp/mol3D_from_smiles
ralf-meyer Feb 13, 2024
21a0d65
Remove list() cast
ralf-meyer Feb 16, 2024
5a70add
compare to all_geometries dict instead of static list
ralf-meyer Feb 16, 2024
f202b67
remove debug print
ralf-meyer Feb 17, 2024
ec69c0e
Add test cases for new geometries
ralf-meyer Feb 17, 2024
84d56c0
Merge remote-tracking branch 'origin/master' into get_geometry_edits
ralf-meyer Feb 17, 2024
2e2313b
Add test cases for is_sandwich_compound
ralf-meyer Feb 17, 2024
b8116af
Add typing
ralf-meyer Feb 18, 2024
fee143f
Test cases for is_edge_compound
ralf-meyer Feb 18, 2024
48035f4
Expand test_get_geometry_type_sandwich() test case
ralf-meyer Feb 18, 2024
82640c5
Add minimal example for issue 127
ralf-meyer Feb 20, 2024
56ab21b
Merge pull request #202 from hjkgrp/rmsd
ralf-meyer Feb 20, 2024
04ad929
Merge branch 'master' into more_ligand_fixes
ralf-meyer Feb 20, 2024
21b7db1
Merge pull request #203 from hjkgrp/more_ligand_fixes
ralf-meyer Feb 20, 2024
9481fd8
Merge pull request #169 from hjkgrp/type-hinting
ralf-meyer Feb 26, 2024
d0e8443
Add failing test cases as commented lines
ralf-meyer Feb 26, 2024
b8b7922
Squashed commit of the following:
ralf-meyer Feb 26, 2024
e8dbfdc
Merge branch 'master' into additional_tests
ralf-meyer Feb 26, 2024
292cc44
Merge pull request #192 from hjkgrp/additional_tests
ralf-meyer Feb 26, 2024
e76c897
Fix from SMILES function
ralf-meyer Feb 26, 2024
3d21d04
Move macrocycle functions to its own directory
ralf-meyer Feb 26, 2024
35714b8
Merge pull request #204 from hjkgrp/geo_free_RACs
ralf-meyer Mar 3, 2024
4207520
added new function to obtain first coordination shell while accountin…
iliak14 Mar 6, 2024
d2c7d2c
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Mar 6, 2024
6b78b7f
Add option to skip 3D generation in getOBMol()
ralf-meyer Mar 7, 2024
3b66225
Merge pull request #206 from hjkgrp/from_smiles
ralf-meyer Mar 7, 2024
5419d1e
Update mol3D.py
iliak14 Mar 11, 2024
3de212d
Merge branch 'first_shell' of https://github.com/hjkgrp/molSimplify i…
iliak14 Mar 11, 2024
bc5da39
Update mol3D.py
iliak14 Mar 12, 2024
7057e18
Initial commit of Mol2D
ralf-meyer Mar 14, 2024
9ec41db
Add graph_hash functionality
ralf-meyer Mar 14, 2024
493abd6
Restructure into parametrized test
ralf-meyer Mar 14, 2024
f03cd25
Remove fixtures to make the tests more readable
ralf-meyer Mar 14, 2024
29c3abb
Add minimal requirement of networkx
ralf-meyer Mar 14, 2024
9a68c3f
Add assert statements for networkx version
ralf-meyer Mar 14, 2024
2ac8721
Fix acac smiles
ralf-meyer Mar 14, 2024
2dc00fe
Update acac references
ralf-meyer Mar 15, 2024
c08d76d
First commit of graph_determinant
ralf-meyer Mar 15, 2024
2aefe74
Add todo for mol3D.add_bond function
ralf-meyer Mar 15, 2024
af267a9
Add test cases for Mol2D.graph_determinant()
ralf-meyer Mar 15, 2024
5c977f3
Revert "Add todo for mol3D.add_bond function"
ralf-meyer Mar 16, 2024
af0c64e
Avoid use of scipy sparse in adjacency matrix
ralf-meyer Mar 16, 2024
5ca1150
Fixes of the graph determinant for large molecules
ralf-meyer Mar 16, 2024
f8edae2
Add Mol2D.__repr__()
ralf-meyer Mar 18, 2024
96664f0
First commit of get_2D_EI and its utility functions
ralf-meyer Mar 20, 2024
8405b1c
Rename get_pareto_indices to get_2D_pareto_indices
ralf-meyer Mar 21, 2024
6f7dffc
Expanded doc string
ralf-meyer Mar 21, 2024
b3824e9
Add numerical cutoff for PI to avoid division by zero
ralf-meyer Mar 21, 2024
ecda58b
Merge pull request #200 from hjkgrp/get_geometry_edits
ralf-meyer Mar 21, 2024
2e4e634
Squashed commit of the following:
ralf-meyer Mar 21, 2024
2705ddb
Rearange geometry test cases
ralf-meyer Mar 21, 2024
2b1ba0f
cleanup of get_geometry_type
ralf-meyer Mar 21, 2024
47545f6
Merge branch 'master' into first_shell
ralf-meyer Mar 21, 2024
eec4ef3
Fixes suggested by GitHub CodeQL
ralf-meyer Mar 21, 2024
a747d68
aesthetic changes
ralf-meyer Mar 21, 2024
7b98225
Fix duplicated tests from merge conflict resolve
ralf-meyer Mar 21, 2024
c8018c1
Merge pull request #205 from hjkgrp/first_shell
ralf-meyer Mar 21, 2024
8ded31e
Fixes from GitHub CodeQL
ralf-meyer Mar 21, 2024
bc503a1
Merge pull request #207 from hjkgrp/mol2D
ralf-meyer Mar 21, 2024
bd76396
Bump python version for the RTD build
ralf-meyer Mar 23, 2024
10ecae5
Merge pull request #209 from hjkgrp/sphinx-fix
ralf-meyer Mar 23, 2024
ac9051b
Update RTD conf.py
ralf-meyer Mar 23, 2024
0f4f815
Merge pull request #210 from hjkgrp/sphinx-fix
ralf-meyer Mar 23, 2024
12c5e39
Fixed typo
ralf-meyer Mar 23, 2024
74930b5
Merge pull request #211 from hjkgrp/sphinx-fix
ralf-meyer Mar 23, 2024
2355343
dummy implementation of 2D EHVI
ralf-meyer Mar 23, 2024
993a17b
Fix typo in variable name
ralf-meyer Mar 23, 2024
9194b0e
Fix error in the 2D_EI /2D_PI calculation
ralf-meyer Mar 24, 2024
0d6a64f
Add implementation of 2D_EHVI
ralf-meyer Mar 24, 2024
6601dc5
Adding geometry classification based on shape matching.
aarongarrison Mar 26, 2024
09da2a0
minor fix to globalvars.py
gianmarco-terrones Mar 31, 2024
a16d424
more minor changes to globalvars.py
gianmarco-terrones Mar 31, 2024
aca7fdd
clarifying comments to RAC generation code
gianmarco-terrones Mar 31, 2024
bfef0d5
Adding translation, cleaning up comments
aarongarrison Apr 2, 2024
a880177
Add tensorflow > 2 as minimal requirement
ralf-meyer Apr 2, 2024
c606d39
Merge pull request #212 from hjkgrp/fix_CI
ralf-meyer Apr 3, 2024
b576b86
fixed geometry classification
jwtoney Apr 3, 2024
d36f4c7
debugging get_geometry_distance()
jwtoney Apr 4, 2024
6395133
Fixing an indexing error introduced in the edge/sandwich fix
aarongarrison Apr 4, 2024
391d51c
Add a tiebreaker metric and allowed ligand lengths to scale independe…
aarongarrison Apr 5, 2024
51dd7b7
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Apr 9, 2024
8c0b4e6
Add find_metal method to Mol2D
ralf-meyer Apr 10, 2024
0474a7d
Add graph_racs.py based on Mol2D
ralf-meyer Apr 10, 2024
8b260cf
Some additional type hints
ralf-meyer Apr 10, 2024
1181ebc
Merge pull request #214 from hjkgrp/mol2D
ralf-meyer Apr 10, 2024
486c735
Merge branch 'rgen_fixes' into master
ralf-meyer Apr 12, 2024
50ef946
small change to a comment
gianmarco-terrones Apr 12, 2024
4c0848c
Merge pull request #184 from rolan701/master
ralf-meyer Apr 16, 2024
7d32159
Merge pull request #215 from hjkgrp/rgen_fixes
ralf-meyer Apr 16, 2024
df56fab
Delete molscontrol from the repository
ralf-meyer Apr 16, 2024
79272c1
Returning GetBondedAtomsSmart default to octahedral
aarongarrison Apr 16, 2024
5f49ace
Merge branch 'geometry_changes' of github.com:hjkgrp/molSimplify into…
aarongarrison Apr 16, 2024
46abd16
Reverted behavior of get_fcs back to default. Added in a keyword argu…
aarongarrison Apr 16, 2024
78edc26
Merge pull request #208 from hjkgrp/active_learning
ralf-meyer Apr 17, 2024
949fc1b
add better __repr__ and __eq__ function to atom3D
ralf-meyer Sep 30, 2023
86f7dc1
Simplify import for important classes
ralf-meyer Sep 30, 2023
1d260a6
Additional test for quaternion_rotate
ralf-meyer Oct 3, 2023
631e0b3
Improved error messages for ANN failures
ralf-meyer Oct 3, 2023
f3b8ef3
Add tests for some of the functions in structgen
ralf-meyer Oct 3, 2023
e77650c
Center and reorient the template for tetrahedral complexes
ralf-meyer Apr 17, 2024
e5bef62
Rename trigonal dodecahedral from sq to tdhd
ralf-meyer Apr 17, 2024
6cb5335
Remove the tridentate test from a cherry picked commit
ralf-meyer Apr 17, 2024
0c112db
Removing __eq__ for now as protein3D relies on atom3D being hashable
ralf-meyer Apr 17, 2024
5ba80ea
Add doctest to pip pytest workflow
ralf-meyer Apr 17, 2024
7626d84
Revert "Add doctest to pip pytest workflow"
ralf-meyer Apr 17, 2024
a601b7f
TXT file creation with surrounded sbu
gianmarco-terrones Apr 19, 2024
10f78a2
deleted unused variables
gianmarco-terrones Apr 19, 2024
03a0630
polish comments
gianmarco-terrones Apr 19, 2024
6cc7430
Merge pull request #222 from hjkgrp/MOF_surrounded_sbu
gianmarco-terrones Apr 19, 2024
9c88578
Merge pull request #219 from hjkgrp/cherry_picked_updates
ralf-meyer Apr 19, 2024
8735359
Add Masking kernel class and test cases
ralf-meyer Apr 19, 2024
ea770b2
Add PermutationLayer and test cases for ml layers
ralf-meyer Apr 19, 2024
bd26e17
Add ligand_racs function and test cases
ralf-meyer Apr 19, 2024
02c10d6
Add docstrings and doctests to Mol2D class methods
ralf-meyer Apr 19, 2024
db7532f
Merge pull request #223 from hjkgrp/ml_utils
ralf-meyer Apr 19, 2024
e0689e6
Add Mol2D to sphinx doc
ralf-meyer Apr 19, 2024
7a938be
Merge pull request #224 from hjkgrp/ligand_racs
ralf-meyer Apr 22, 2024
dcbf1b2
Add permutational kernel
ralf-meyer Apr 22, 2024
a885184
Fix failing sphinx build
ralf-meyer Apr 22, 2024
5a05bf0
Proper formatting of Mol2D doc strings
ralf-meyer Apr 22, 2024
5104485
welcom_subgroup_2
anhtpnguyen Apr 22, 2024
47b7ba9
Merge pull request #225 from hjkgrp/fix_rtd
ralf-meyer Apr 22, 2024
cded44f
Add from_mol3D constructor
ralf-meyer Apr 22, 2024
59ec300
Remove unnecessay comment
ralf-meyer Apr 22, 2024
d987494
Add racs_names functions
ralf-meyer Apr 23, 2024
8d3b360
Rename ligand RACs
ralf-meyer Apr 23, 2024
85e170a
Remove difference ligand RACs for full scope
ralf-meyer Apr 23, 2024
8b2a645
Reorder RACs so that depth is the last loop
ralf-meyer Apr 23, 2024
06a86d4
delete unused import
Benzoin96485 Apr 23, 2024
931a77f
Merge pull request #226 from hjkgrp/welcome_sg_1
ralf-meyer Apr 23, 2024
7d96dfb
Merge pull request #227 from hjkgrp/welcome_subgroup_2_bug
ralf-meyer Apr 23, 2024
f998be6
update addtoldb (#220)
dbkchu Apr 24, 2024
91cc41c
update version number
gianmarco-terrones Apr 24, 2024
5aedd7e
Remove everything related to iodata
ralf-meyer Apr 24, 2024
ff43aee
Merge pull request #218 from hjkgrp/delete_molscontrol
ralf-meyer Apr 24, 2024
f7393d4
Delete molscontrol from the repository
ralf-meyer Apr 16, 2024
e7e5a50
Merge pull request #228 from hjkgrp/remove_dead_code
ralf-meyer Apr 24, 2024
60122e1
Updating format of unknown geometry summaries to match other summaries
aarongarrison Apr 26, 2024
9378d27
Add typing and switch to itertools.permutation
ralf-meyer Apr 30, 2024
ae35599
Add test cases and fix reference geometries
ralf-meyer Apr 30, 2024
262d69f
Make PermutationLayer serializable
ralf-meyer May 2, 2024
08a7ec9
Merge branch 'master' into permutational_kernel
ralf-meyer May 3, 2024
651c202
guardrail print statements
gianmarco-terrones May 6, 2024
d7905d1
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] May 6, 2024
2959f90
Merge pull request #230 from hjkgrp/metal_autocorrelation
gianmarco-terrones May 6, 2024
a483469
Fix serialization for new TF versions
ralf-meyer May 6, 2024
bf9b0e5
Merge pull request #229 from hjkgrp/permutational_kernel
ralf-meyer May 6, 2024
9590b51
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] May 6, 2024
da4d0c4
Merge pull request #231 from hjkgrp/pre-commit-ci-update-config
ralf-meyer May 7, 2024
ba0ef66
Merge pull request #213 from hjkgrp/geometry_changes
aarongarrison May 7, 2024
3b2f7af
new function get_molecular_mass
gianmarco-terrones May 9, 2024
b9ed596
minor docstring update
gianmarco-terrones May 9, 2024
cb8a04d
Merge pull request #233 from hjkgrp/mol3D_addition
gianmarco-terrones May 9, 2024
6ccaafa
improved 1d rod detection code
gianmarco-terrones Jun 7, 2024
79718e1
1d rod update pt 2
gianmarco-terrones Jun 7, 2024
e40931b
Fix ligand dict (#236)
dbkchu Jun 7, 2024
47a5810
Add option for jobmanager-style naming (#198)
husainadamji Jun 7, 2024
d51bd50
Fix bug in issue #235 (#239)
dbkchu Jun 8, 2024
a9eeff8
RMSD including initial alignment by principal moments of inertia (#242)
aarongarrison Jun 18, 2024
20d9160
changes in response to issue #243
gianmarco-terrones Jun 30, 2024
00e4807
Merge pull request #244 from hjkgrp/pyproject_toml_update
gianmarco-terrones Jun 30, 2024
9a4053a
[pre-commit.ci] pre-commit autoupdate (#245)
pre-commit-ci[bot] Jul 4, 2024
3ece4fb
new version number
gianmarco-terrones Jul 11, 2024
7366dbe
Merge pull request #249 from hjkgrp/version_1.7.5
gianmarco-terrones Jul 11, 2024
e2464e0
replace PF3 with SMILES generated mol2 (#251)
dbkchu Jul 19, 2024
88d4050
Update ci (#252)
dbkchu Jul 19, 2024
a6909d0
Improving align_rmsd (#248)
aarongarrison Jul 22, 2024
d511bd0
new mol3D function for reading from .mol file
gianmarco-terrones Jul 23, 2024
53989f4
fix CodeQL issue
gianmarco-terrones Jul 23, 2024
237e1e7
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Jul 23, 2024
b60a4fe
removing annotation of new function to prevent mypy from criticizing it
gianmarco-terrones Jul 23, 2024
bda30d8
removing annotation of new function to prevent mypy from criticizing it
gianmarco-terrones Jul 23, 2024
1ca2ab1
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Jul 23, 2024
cb0a447
Merge pull request #253 from hjkgrp/read_from_MOL_file
gianmarco-terrones Jul 23, 2024
9e7b0f9
Updating RMSD docstrings
aarongarrison Jul 23, 2024
d6796e4
Merge pull request #254 from hjkgrp/rmsd_doc_update
gianmarco-terrones Jul 23, 2024
9b5df4b
Adding continuous shape measures to geometry classification
aarongarrison Jul 31, 2024
5aaac4c
Updating summary to include labels
aarongarrison Jul 31, 2024
7f0d338
fix .mass attribute if it is off
gianmarco-terrones Jul 31, 2024
7e80b47
Merge pull request #255 from hjkgrp/minor_change_mol3D_mass
gianmarco-terrones Jul 31, 2024
3a22984
Merge pull request #257 from hjkgrp/shape_measures
jwtoney Aug 5, 2024
9920962
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 6, 2024
ce8e7d5
Bug fix in readfrommol2
jwtoney Aug 8, 2024
11c10e0
Merge pull request #259 from hjkgrp/bugfix
jwtoney Aug 8, 2024
1d16c68
Updated test case to be compatibile with oct=False (translated ligand…
jwtoney Aug 14, 2024
71415f7
fixed remaining test cases to be compatible with oct=False default
jwtoney Aug 15, 2024
0ed95c5
Test case fix1 (#260)
jwtoney Aug 15, 2024
3555066
docstring and comment typo fix
gianmarco-terrones Aug 21, 2024
c72bca0
Merge pull request #261 from hjkgrp/doc_fix
gianmarco-terrones Aug 21, 2024
f587000
crisper logo
gianmarco-terrones Aug 27, 2024
2d25031
Merge pull request #262 from hjkgrp/enhance_logo
gianmarco-terrones Aug 27, 2024
47231be
higher res logo in docs
gianmarco-terrones Aug 27, 2024
a52c120
Merge pull request #263 from hjkgrp/docs_logo
gianmarco-terrones Aug 27, 2024
4ca0a34
Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows
dependabot[bot] Sep 3, 2024
77498e0
update readfromxyz to allow xyz files as strings
jwtoney Sep 13, 2024
edf9a6f
Merge pull request #258 from hjkgrp/pre-commit-ci-update-config
gianmarco-terrones Sep 14, 2024
bd9947e
Merge pull request #264 from hjkgrp/dependabot/github_actions/dot-git…
gianmarco-terrones Sep 14, 2024
80b9dbd
text changes
gianmarco-terrones Sep 14, 2024
e9b1d7b
Merge pull request #267 from hjkgrp/minor_text_changes
gianmarco-terrones Sep 14, 2024
07a1529
Merge branch 'main' into readxyz
aarongarrison Sep 14, 2024
a298bca
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Sep 14, 2024
f5dc869
Allowing for easy access of the aligned structures during the align_r…
aarongarrison Sep 18, 2024
d814cee
Bugfix for verbose option.
aarongarrison Sep 18, 2024
60c89ca
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] Sep 18, 2024
8bb4839
Merge pull request #268 from hjkgrp/rmsd_documentation
jwtoney Sep 19, 2024
9af2840
code for symmetry classes
jwtoney Oct 9, 2024
feecb53
Merge branch 'readxyz' of https://github.com/hjkgrp/molSimplify into …
jwtoney Oct 9, 2024
2a781ee
adding ligand_breakdown import to test case
jwtoney Oct 9, 2024
d3fa63d
added ligand_breakdown import to helperfuncs.py
jwtoney Oct 9, 2024
d34b770
added ligand_breakdown to match_lig_list
jwtoney Oct 10, 2024
38f385f
Merge pull request #266 from hjkgrp/readxyz
gianmarco-terrones Oct 10, 2024
225eda4
prevent function arguments from being modified
gianmarco-terrones Oct 11, 2024
45812f4
corrected all instances of misspelling "indicies"
gianmarco-terrones Oct 11, 2024
87dc92c
Merge pull request #271 from hjkgrp/indicies
gianmarco-terrones Oct 11, 2024
6efb628
Merge pull request #270 from hjkgrp/geo_list_fix
gianmarco-terrones Oct 11, 2024
56c0df1
optional flag for tab replacement with spaces
gianmarco-terrones Oct 24, 2024
4d4fea6
Merge pull request #274 from hjkgrp/tabs_coordinates
gianmarco-terrones Oct 24, 2024
7c1cf6a
flag to use spaces instead of tabs in molSimplify construction
gianmarco-terrones Oct 24, 2024
f56041b
adjusting test case
gianmarco-terrones Oct 24, 2024
284906a
Merge pull request #275 from hjkgrp/no_tab_flag
gianmarco-terrones Oct 24, 2024
bd957c1
fixed get_primitive function in MOF_descriptors
husainadamji Oct 24, 2024
fcc7f20
Merge pull request #276 from hjkgrp/mof
husainadamji Oct 24, 2024
a636f95
fixed a bug that broke lc_names assignment during MOF RACs calculation
husainadamji Oct 28, 2024
e2f0a7c
Merge pull request #277 from hjkgrp/mof
husainadamji Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions setup.cfg → .flake8
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[aliases]
test=pytest

[flake8]
max-complexity = 15
max-line-length = 127
73 changes: 73 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
# This follows https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

on:
push:
tags:
- v*

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/molSimplify
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4.1.7
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/molSimplify
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4.1.7
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches: [ "master", "main" ]
pull_request:
branches: [ "master" ]
branches: [ "master", "main" ]
schedule:
- cron: "59 11 * * 6"

Expand Down
66 changes: 42 additions & 24 deletions .github/workflows/CI.yaml → .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,26 @@
name: CI
name: Pytest

on:
# GitHub has started calling new repo's first branch "main" https://github.com/github/renaming
# Existing codes likely still have "master" as the primary branch
# Both are tracked here to keep legacy and new codes working
push:
branches:
- "master"
- "main"
pull_request:
branches:
- "master"
- "main"
# schedule:
# # Nightly tests run on master by default:
# # Scheduled workflows run on the latest commit on the default or base branch.
# # (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)
# - cron: "0 0 * * *"

jobs:
CI:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
pytest_conda:
name: Pytest (conda) on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7", "3.8"]
python-version: ["3.8", "3.10"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Additional info about the build
run: |
Expand All @@ -42,7 +32,7 @@ jobs:
uses: josStorer/get-current-time@v2.0.2
id: current-time
- name: Cache conda env
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
env:
# Increase this value to reset cache if mols.yml has not changed
Expand All @@ -57,10 +47,10 @@ jobs:

# More info on the whole conda setup: https://github.com/conda-incubator/setup-miniconda
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
id: conda-setup
with:
# mamba-version: "*" # uncomment to activate mamba
# mamba-version: "*" # uncomment to activate mamba
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
Expand All @@ -74,13 +64,18 @@ jobs:
pip install -e . --no-deps
pip install pytest-cov
conda list

- name: Run tests
run: |
pytest -v --cov=molSimplify --cov-report=xml


- name: Run doctest
# For now still excluding several subfolders and files
run: |
pytest --doctest-modules --ignore=molSimplify/Informatics/MOF --ignore=molSimplify/Informatics/protein --ignore=molSimplify/Scripts/in_b3lyp_usetc.py --ignore=molSimplify/Informatics/jupyter_vis.py --ignore=molSimplify/Informatics/macrocycle_synthesis.py --ignore=molSimplify/Informatics/organic_fingerprints.py molSimplify

- name: Upload coverage report to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
Expand All @@ -89,16 +84,39 @@ jobs:
flags: unittests
name: codecov-umbrella
verbose: true

- name: Report Status
# Slack notifications only on the main repo
if: ${{ github.event_name != 'pull_request' && github.repository == 'hjkgrp/molSimplify' }}
if: ${{job.status == 'failure' && github.event_name != 'pull_request' && github.repository == 'hjkgrp/molSimplify' }}
#uses: ravsamhq/notify-slack-action@v1
uses: 8398a7/action-slack@v3
with:
job_name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
job_name: Pytest (conda) on ${{ matrix.os }}, Python ${{ matrix.python-version }}
fields: message,commit,author,workflow,job,took
status: ${{ job.status }}
env:
SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK}}
#MATRIX_CONTEXT: ${{ toJson(matrix) }} # required

pytest_pip:
name: Pytest (pip) on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8"]
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install package
run: |
pip install -e .[dev]

- name: Run pytest
run: |
pytest -v
26 changes: 14 additions & 12 deletions .github/workflows/python-linter.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: Linter

on: [push, pull_request]
on:
pull_request:
push:
branches: ["master", "main"]

jobs:
flake8:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -48,19 +51,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy types-setuptools types-PyYAML types-requests
pip install mypy types-setuptools types-PyYAML types-requests types-tensorflow types-beautifulsoup4 pandas-stubs PyQt5-stubs
- name: Typecheck with mypy
run: |
# Exclude parts of Informatics for now
mypy --ignore-missing-imports --exclude '(frag_functionalizer.py|bridge_functionalizer.py|macrocycle_synthesis.py)' molSimplify
mypy --ignore-missing-imports molSimplify

- name: Report Status
# Slack notifications only on the main repo
Expand Down
10 changes: 8 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
ci:
autofix_commit_msg: '[pre-commit.ci] auto fixes from pre-commit hooks'
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: monthly

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
rev: '3.8.4'
rev: '7.1.1'
hooks:
- id: flake8
args: ['--select=E9,F63,F7,F82', '--exclude=fragment_classes.py,frag_functionalizer.py,bridge_functionalizer.py']
9 changes: 5 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
version: 2

conda:
environment: docs/environment.yaml
build:
os: ubuntu-22.04
tools:
python: "3.8"

python:
version: 3.7
install:
- method: pip
path: .
extra_requirements:
- rtd
- docs

sphinx:
builder: html
Expand Down
15 changes: 0 additions & 15 deletions MANIFEST.in

This file was deleted.

Loading
Loading