Skip to content

Commit

Permalink
Merge branch 'master' into confpass
Browse files Browse the repository at this point in the history
  • Loading branch information
jessbade committed Apr 2, 2024
2 parents 622fb31 + 8233598 commit 08e4e86
Show file tree
Hide file tree
Showing 17 changed files with 2,036 additions and 1,250 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
11 changes: 4 additions & 7 deletions isicle/adducts.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,8 @@ def set_geometry(self, geom):

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 @@ -482,7 +481,7 @@ def _forcefield_selector(self, forcefield, mw):
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 @@ -1110,11 +1109,9 @@ def set_charge(self):
if self.geom.__dict__.get("charge") is None:
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"
)
raise ValueError("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(ion_path=ion_path, ion_list=ion_list)
Expand Down
Loading

0 comments on commit 08e4e86

Please sign in to comment.