Skip to content

Commit

Permalink
Add "get" methods for structures, adducts
Browse files Browse the repository at this point in the history
  • Loading branch information
smcolby committed Aug 8, 2023
1 parent f65ada2 commit a2bc610
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions isicle/adducts.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,32 @@ def run(self, geom, ion_path=None, ion_list=None, **kwargs):
self.finish()

return self

def get_structures(self):
'''
Extract all structures from containing object as a conformational ensemble.
Returns
-------
:obj:`~isicle.conformers.ConformationalEnsemble`
Conformational ensemble.
'''

return self.adducts.get_structures()

def get_adducts(self):
'''
Extract all structures from containing object as an adduct ensemble.
Returns
-------
:obj:`~isicle.adducts.AdductEnsemble`
Adduct ensemble.
'''

return self.adducts

def save_pickle(self, path):
'''
Expand Down Expand Up @@ -1170,6 +1196,32 @@ def run(self, geom, ion_path=None, ion_list=None, **kwargs):
self.finish()

return self

def get_structures(self):
'''
Extract all structures from containing object as a conformational ensemble.
Returns
-------
:obj:`~isicle.conformers.ConformationalEnsemble`
Conformational ensemble.
'''

return self.adducts.get_structures()

def get_adducts(self):
'''
Extract all structures from containing object as an adduct ensemble.
Returns
-------
:obj:`~isicle.adducts.AdductEnsemble`
Adduct ensemble.
'''

return self.adducts

def save_pickle(self, path):
'''
Expand Down

0 comments on commit a2bc610

Please sign in to comment.