Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
minhuanli committed Sep 12, 2024
2 parents 375056d + 92b564c commit 611e986
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SFC_Torch/Fmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def assign_resolution_bins(
if return_labels:
return self.bin_labels

def inspect_data(self, verbose=False):
def inspect_data(self, verbose=False, spacing=4.5):
"""
Do an inspection of data, for hints about
1. solvent percentage for mask calculation
Expand All @@ -547,7 +547,7 @@ def inspect_data(self, verbose=False):
# solvent percentage
vdw_rad = vdw_rad_tensor(self.atom_name, device=self.device)
uc_grid_orth_tensor = unitcell_grid_center(
self.unit_cell, spacing=4.5, return_tensor=True, device=self.device
self.unit_cell, spacing=spacing, return_tensor=True, device=self.device
)
occupancy, _ = packingscore_voxelgrid_torch(
self.atom_pos_orth,
Expand Down Expand Up @@ -1421,8 +1421,8 @@ def prepare_dataset(self, HKL_attr: str, F_attr: str):
dataset["L"] = HKL_out[:, 2]
dataset["FMODEL"] = assert_numpy(F_out_mag)
dataset["PHIFMODEL"] = assert_numpy(F_out_phase)
dataset["FMODEL_COMPLEX"] = assert_numpy(F_out)
dataset.set_index(["H", "K", "L"], inplace=True)
dataset.infer_mtz_dtypes(inplace=True)
return dataset

def savePDB(self, outname: str):
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def getVersionNumber():
install_requires=[
"gemmi>=0.5.6",
"reciprocalspaceship>=0.9.18",
"numpy<2.0.0",
"tqdm",
],
setup_requires=["pytest-runner"],
Expand Down

0 comments on commit 611e986

Please sign in to comment.