Spaces:
Sleeping
Sleeping
Update inference_app.py
Browse files- 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.
|
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)
|