Skip to content

Commit

Permalink
Squashed 'modules/pmi/' changes from e469c4f9fe..a196965cf3
Browse files Browse the repository at this point in the history
a196965cf3 Pass list of strings to ChainPDBSelector

git-subtree-dir: modules/pmi
git-subtree-split: a196965cf36e866fcf98a0b8768b943b0749af7f
  • Loading branch information
benmwebb committed Sep 29, 2023
1 parent eca4fe7 commit 66e6654
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/pmi/pyext/src/mmcif.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def __init__(self, state, component, start, end, pdb_offset,
= component, start, end, pdb_offset, pdbname
self.state, self.chain, self.hier = state, chain, hier
sel = IMP.atom.NonWaterNonHydrogenPDBSelector() \
& IMP.atom.ChainPDBSelector(chain)
& IMP.atom.ChainPDBSelector([chain])
self.starting_hier = IMP.atom.read_pdb(pdbname, state.model, sel)

rigid = property(lambda self: _get_fragment_is_rigid(self),
Expand Down
4 changes: 1 addition & 3 deletions modules/pmi/pyext/src/topology/system_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ def get_structure(model, pdb_fn, chain_id, res_range=None, offset=0,
sel = IMP.atom.get_default_pdb_selector()

reader = read_file if model_num is None else read_multi_file
mh = reader(pdb_fn, model,
IMP.atom.AndPDBSelector(IMP.atom.ChainPDBSelector(chain_id),
sel))
mh = reader(pdb_fn, model, IMP.atom.ChainPDBSelector([chain_id]) & sel)
if model_num is not None:
mh = mh[model_num]

Expand Down

0 comments on commit 66e6654

Please sign in to comment.