diff --git a/iotbx/command_line/pdb_cif_conversion.py b/iotbx/command_line/pdb_cif_conversion.py index 66798e4e41..77e9fe100e 100644 --- a/iotbx/command_line/pdb_cif_conversion.py +++ b/iotbx/command_line/pdb_cif_conversion.py @@ -181,10 +181,10 @@ def get_results(self): str = ph.as_pdb_string() print("Doing something with a string %s" %str) - Use instead model.as_pdb_or_mmcif_string() which will give you a PDB or + Use instead ph.as_pdb_or_mmcif_string() which will give you a PDB or mmcif string as appropriate: - str = model.as_pdb_or_mmcif_string( + str = ph.as_pdb_or_mmcif_string( target_format = params.output.target_output_format) print("Doing something with a string %s" %str) diff --git a/libtbx/command_line/find_pdb_mmcif_problems.py b/libtbx/command_line/find_pdb_mmcif_problems.py index ff1bf6865a..66688d2468 100644 --- a/libtbx/command_line/find_pdb_mmcif_problems.py +++ b/libtbx/command_line/find_pdb_mmcif_problems.py @@ -111,7 +111,7 @@ def mark_problems_in_file(text, path, all_problems, if (not next_ending): next_ending = " ".join(sw) new_text = " # XXX CHECK PDB: %s" %(next_ending) - for i in range(p.line_number, p.line_number + n_context): + for i in range(p.line_number-1, p.line_number + n_context - 1): line = lines[i] if (not line.endswith("\\")) and (not line.find("XXX CHECK PDB") > -1): line = line.rstrip()