Skip to content

Commit

Permalink
type checking for main action functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisbrookner committed Oct 16, 2023
1 parent 93bb5f5 commit f2809bb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
37 changes: 19 additions & 18 deletions src/matchmaps/_compute_mr_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import subprocess
import time
from functools import partial
from pathlib import Path

import gemmi
import numpy as np
Expand All @@ -28,24 +29,24 @@


def compute_mr_difference_map(
pdboff,
mtzoff,
mtzon,
Foff,
SigFoff,
Fon,
SigFon,
ligands=None,
dmin=None,
spacing=0.5,
on_as_stationary=False,
input_dir="./",
output_dir="./",
verbose=False,
rbr_selections=None,
eff=None,
keep_temp_files=None,
radius=5,
pdboff : Path,
mtzoff : Path,
mtzon : Path,
Foff : str,
SigFoff : str,
Fon : str,
SigFon : str,
ligands: list = None,
dmin : int = None,
spacing = 0.5,
on_as_stationary = False,
input_dir = Path("."),
output_dir = Path("."),
verbose = False,
rbr_selections : list[str] = None,
eff : str = None,
keep_temp_files: str = None,
radius = 5,
):
"""
Compute a real-space difference map from mtzs in different spacegroups.
Expand Down
26 changes: 13 additions & 13 deletions src/matchmaps/_compute_ncs_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@


def compute_ncs_difference_map(
pdb,
mtz,
F,
SigF=None,
Phi=None,
ligands=None,
name=None,
dmin=None,
spacing=0.5,
pdb : Path,
mtz : Path,
F : str,
SigF : str = None,
Phi : str = None,
ligands : list = None,
name : str = None,
dmin : int = None,
spacing = 0.5,
input_dir=Path("."),
output_dir=Path("."),
verbose=False,
ncs_chains=None,
refine_ncs_separately=False,
eff=None,
keep_temp_files=None
ncs_chains : list[str] = None,
refine_ncs_separately = False,
eff : str = None,
keep_temp_files : str = None
):
_validate_environment(ccp4=False)

Expand Down

0 comments on commit f2809bb

Please sign in to comment.