Skip to content

Commit

Permalink
Remove workaround for old python-ihm
Browse files Browse the repository at this point in the history
We now require python-ihm 1.7, so don't need
a workaround for older versions
  • Loading branch information
benmwebb committed Oct 25, 2024
1 parent 7774ef1 commit e92bb5b
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions modelcif/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,17 +984,9 @@ def read(fh, model_class=modelcif.model.Model, format='mmCIF', handlers=[],
:return: A list of :class:`modelcif.System` objects.
""" # noqa: E501
if add_to_system is None:
# Work for now with stable python-ihm release
return ihm.reader.read(
fh, model_class=model_class, format=format, handlers=handlers,
warn_unknown_category=warn_unknown_category,
warn_unknown_keyword=warn_unknown_keyword,
reject_old_file=reject_old_file, variant=variant)
else:
return ihm.reader.read(
fh, model_class=model_class, format=format, handlers=handlers,
warn_unknown_category=warn_unknown_category,
warn_unknown_keyword=warn_unknown_keyword,
reject_old_file=reject_old_file, variant=variant,
add_to_system=add_to_system)
return ihm.reader.read(
fh, model_class=model_class, format=format, handlers=handlers,
warn_unknown_category=warn_unknown_category,
warn_unknown_keyword=warn_unknown_keyword,
reject_old_file=reject_old_file, variant=variant,
add_to_system=add_to_system)

0 comments on commit e92bb5b

Please sign in to comment.