> import MDAnalysis as mda> universe = mda.Universe
AD_analysis = AD(universe,selection,bins)
> import MDAnalysis
> from MDAnalysis.analysis.waterdynamics import AngularDistribution as AD
> u = MDAnalysis.Universe('001_B_6glycol.xyz', 'md.xyz')
> selection = ('O', 'C')
> bins = 30
> import MDAnalysis as mda> universe = mda.Universe
> AD_analysis = AD(u, selection,bins)
> AD_analysis.run()
--
You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mdnalysis-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/5c7e0401-5916-40b6-b918-90d6494456ban%40googlegroups.com.
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last)
<ipython-input-27-a1515026352f> in <module>
----> 1 AD_analysis.run() ~/.local/lib/python3.6/site-packages/MDAnalysis/analysis/waterdynamics.py in run(self, **kwargs) 716 if self.nproc == 1: 717 selection = self._selection_serial( --> 718 self.universe, self.selection_str) 719 else: 720 # not implemented yet ~/.local/lib/python3.6/site-packages/MDAnalysis/analysis/waterdynamics.py in _selection_serial(self, universe, selection_str)
741 for ts in ProgressBar(universe.trajectory, verbose=True,
742 total=universe.trajectory.n_frames): --> 743 selection.append(universe.select_atoms(selection_str)) 744 return selection 745 ~/.local/lib/python3.6/site-packages/MDAnalysis/core/universe.py in select_atoms(self, *args, **kwargs) 638 :meth:`MDAnalysis.core.groups.AtomGroup.select_atoms` 639 """ --> 640 return self.atoms.select_atoms(*args, **kwargs) 641 642 @property ~/.local/lib/python3.6/site-packages/MDAnalysis/core/groups.py in select_atoms(self, sel, periodic, rtol, atol, updating, sorted, rdkit_kwargs, *othersel, **selgroups) 3149 sorted=sorted, 3150 rdkit_kwargs=rdkit_kwargs) -> 3151 for s in sel_strs)) 3152 if updating: 3153 atomgrp = UpdatingAtomGroup(self, selections, sel_strs) ~/.local/lib/python3.6/site-packages/MDAnalysis/core/groups.py in <genexpr>(.0) 3149 sorted=sorted, 3150 rdkit_kwargs=rdkit_kwargs) -> 3151 for s in sel_strs)) 3152 if updating: 3153 atomgrp = UpdatingAtomGroup(self, selections, sel_strs) ~/.local/lib/python3.6/site-packages/MDAnalysis/core/selection.py in parse(self, selectstr, selgroups, periodic, atol, rtol, sorted, rdkit_kwargs) 1437 self.selectstr = selectstr 1438 self.selgroups = selgroups -> 1439 tokens = selectstr.replace('(', ' ( ').replace(')', ' ) ') 1440 self.tokens = collections.deque(tokens.split() + [None]) 1441 parsetree = self.parse_expression(0) AttributeError: 'tuple' object has no attribute 'replace'
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/CAMDDE9pA6e1XsyWaD3ki84_acR3vRtKmM-X1jGr%2BghyY0%2BA0hA%40mail.gmail.com.
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last)
<ipython-input-10-a1515026352f> in <module>
~/.local/lib/python3.6/site-packages/MDAnalysis/core/groups.py in __getattr__(self, attr) 2500 elif attr == 'positions': 2501 raise NoDataError('This Universe has no coordinates') -> 2502 return super(AtomGroup, self).__getattr__(attr) 2503 2504 @property ~/.local/lib/python3.6/site-packages/MDAnalysis/core/groups.py in __getattr__(self, attr) 595 raise NoDataError(err.format(singular=cls.singular)) 596 else: --> 597 return super(GroupBase, self).__getattr__(attr) 598 599 def __repr__(self): ~/.local/lib/python3.6/site-packages/MDAnalysis/core/groups.py in __getattr__(self, attr) 385 match = _TOPOLOGY_ATTRNAMES[clean] 386 err += 'Did you mean {match}?'.format(match=match) --> 387 raise AttributeError(err) 388 389 def get_connections(self, typename, outside=True): AttributeError: AtomGroup has no attribute replace.
You received this message because you are subscribed to a topic in the Google Groups "MDnalysis discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mdnalysis-discussion/T-ObBjzwU5o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mdnalysis-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/bdcb7f29-f08c-4aa0-8807-acc189ec44den%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/CACYOpKEFrdv_sCL78dYM9G82GVzeuT7aKw-oKh1rC1enVk%3DZvg%40mail.gmail.com.