Skip to content

Commit

Permalink
Merge master into TINKER
Browse files Browse the repository at this point in the history
  • Loading branch information
jessbade committed Feb 21, 2024
2 parents c88061e + 8233598 commit 20b87ab
Show file tree
Hide file tree
Showing 15 changed files with 1,265 additions and 733 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Apply formatting
uses: github/super-linter@v4
Expand All @@ -29,13 +29,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
miniforge-version: 4.9.2-4
use-mamba: true
environment-file: envs/linux.yml
use-only-tar-bz2: true
Expand All @@ -59,13 +59,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
miniforge-version: 4.9.2-4
use-mamba: true
environment-file: envs/osx.yml
use-only-tar-bz2: true
Expand All @@ -91,13 +91,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup environment
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
miniforge-version: 4.9.2-4
use-mamba: true
python-version: 3.9
channels: conda-forge,bioconda
Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ requirements:
- openmpi
- pandas >=1.1.4
- python =3.9
- rdkit <=2022.09.1
- rdkit >=2023.09.1
- snakemake >=6.3.0
- statsmodels >=0.11.1
- xtb >=6.5.1
Expand Down
2 changes: 1 addition & 1 deletion envs/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- openmpi
- pandas >=1.1.4
- python =3.9
- rdkit <=2022.09.1
- rdkit >=2023.09.1
- snakemake >=6.3.0
- statsmodels >=0.11.1
- xtb >=6.5.1
2 changes: 1 addition & 1 deletion envs/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- openmpi
- pandas >=1.1.4
- python =3.9
- rdkit <=2022.09.1
- rdkit >=2023.09.1
- snakemake >=6.3.0
- statsmodels >=0.11.1
- xtb >=6.5.1
8 changes: 4 additions & 4 deletions isicle/adducts.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def set_charge(self):
'''

if self.geom.__dict__.get('charge') is None:
self.geom.__dict__.update(charge=self.geom.get_formal_charge())
self.geom.__dict__.update(charge=self.geom.get_charge())

def _set_ions(self, ion_path=None, ion_list=None):
'''
Expand Down Expand Up @@ -472,7 +472,7 @@ def _update_geometry_charge(self, geom):
'''
'''

geom.__dict__.update(charge=geom.get_formal_charge())
geom.__dict__.update(charge=geom.get_charge())

def _add_ion(self, init_mol, base_atom_idx, ion_atomic_num, sanitize, forcefield, ff_iter):
'''
Expand Down Expand Up @@ -983,9 +983,9 @@ def set_charge(self):
if self.geom.load.get('filetype') == '.xyz':
# self.geom.__dict__.update(charge=charge)
raise ValueError(
'Must first run geom.set_formal_charge for an xyz structure')
'Must first run geom.set_charge for an xyz structure')
else:
self.geom.__dict__.update(charge=self.geom.get_formal_charge())
self.geom.__dict__.update(charge=self.geom.get_charge())

def _set_ions(self, ion_path=None, ion_list=None):
cations, anions, complex = _parse_ions(
Expand Down
Loading

0 comments on commit 20b87ab

Please sign in to comment.