OleinikovasV commited on
Commit
fab2300
·
verified ·
1 Parent(s): a8e9ffd

Update inference_app.py

Browse files
Files changed (1) hide show
  1. inference_app.py +1 -1
inference_app.py CHANGED
@@ -54,7 +54,7 @@ def generate_input_conformer(
54
 
55
  def set_protein_to_new_coord(input_pdb_file, new_coord, output_file):
56
  structure = PDBFile.read(input_pdb_file).get_structure()
57
- structure.coord = np.array([new_coord] * len(structure.coord))
58
  file = PDBFile()
59
  file.set_structure(structure)
60
  file.write(output_file)
 
54
 
55
  def set_protein_to_new_coord(input_pdb_file, new_coord, output_file):
56
  structure = PDBFile.read(input_pdb_file).get_structure()
57
+ structure.coord = np.ones_like(structure.coord) * np.array(new_coord)
58
  file = PDBFile()
59
  file.set_structure(structure)
60
  file.write(output_file)