Skip to content

Commit

Permalink
Merge pull request mdtraj#1180 from Eigenstate/pullme
Browse files Browse the repository at this point in the history
Handle unexpected keyword arguments gracefully in psf and prmtop parsers
  • Loading branch information
mpharrigan authored Oct 1, 2016
2 parents c22c829 + 72b9f26 commit a53bac2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mdtraj/formats/prmtop.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _get_pointer_value(pointer_label, raw_data):
return float(raw_data['POINTERS'][index])


def load_prmtop(filename):
def load_prmtop(filename, **kwargs):
"""Load an AMBER prmtop topology file from disk.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion mdtraj/formats/psf.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _parse_psf_section(psf):
line = psf.readline().strip()
return title, pointers, data

def load_psf(fname):
def load_psf(fname, **kwargs):
"""Load a CHARMM or XPLOR PSF file from disk
Parameters
Expand Down

0 comments on commit a53bac2

Please sign in to comment.