Skip to content

Commit

Permalink
Fix minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
terwill committed Dec 4, 2024
1 parent 14b793d commit b5e3769
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions iotbx/command_line/pdb_cif_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion libtbx/command_line/find_pdb_mmcif_problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b5e3769

Please sign in to comment.