You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NameError Traceback (most recent call last)
<ipython-input-17-aeef6cceb0cb> in <module>
1for i inrange(10):
----> 2 sm.write(f'/tmp/stefan{i}.pdb', frames=[i,])
3
~/Work/moleculekit/moleculekit/smallmol/smallmol.py in write(self, fname, frames, merge)
601else:
602 mol =self.toMolecule()
--> 603 mol.write(fname, frames)
604605defview(self, *args, **kwargs):
~/Work/moleculekit/moleculekit/molecule.py in write(self, filename, sel, type, **kwargs)
1309 if not (sel is None or (isinstance(sel, str) and sel == "all")):
1310 src = self.copy()
-> 1311 src.filter(sel, _logger=False)
1312
1313 if type in _WRITERS:
~/Work/moleculekit/moleculekit/molecule.py in filter(self, sel, _logger)
784785ifnotisinstance(s, np.ndarray) or s.dtype !=bool:
--> 786 raise NameError("Filter can only work with string inputs or boolean arrays")
787returnself.remove(np.invert(s), _logger=_logger)
788NameError: Filter can only work with string inputs or boolean arrays
The text was updated successfully, but these errors were encountered:
crashes with
The text was updated successfully, but these errors were encountered: