Skip to content

Commit

Permalink
refmacat: don't prepare crd if unrestrained refinement requested
Browse files Browse the repository at this point in the history
  • Loading branch information
keitaroyam committed Nov 30, 2023
1 parent 6d57c10 commit b377d36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions servalcat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
Mozilla Public License, version 2.0; see LICENSE.
"""

__version__ = '0.4.40'
__date__ = '2023-11-18'
__version__ = '0.4.41'
__date__ = '2023-11-30'
4 changes: 2 additions & 2 deletions servalcat/refmac/refmac_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def parse_line(l, ret):
while itk < ntok:
if s[itk].startswith("type"):
if itk+1 < ntok and s[itk+1].startswith("unre"):
ret["refi"] = {"type": "unre"}
ret["refi"]["type"] = "unre"
itk += 2
else:
itk += 1
Expand Down Expand Up @@ -507,7 +507,7 @@ def get_lines(lines):
# get_lines()

def parse_keywords(inputs):
ret = {"make":{}, "ridge":{}}
ret = {"make":{}, "ridge":{}, "refi":{}}
for l in get_lines(inputs):
if l.split()[0].lower().startswith("end"):
break
Expand Down
4 changes: 2 additions & 2 deletions servalcat/refmac/refmac_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def parse_args(arg_list):
def read_stdin(stdin):
print("Waiting for input..")
# these make keywords will be ignored (just passed to refmac): ribo,valu,spec,form,sdmi,segi
ret = {"make":{}, "ridge":{}}
ret = {"make":{}, "ridge":{}, "refi":{}}
inputs = []
for l in refmac_keywords.get_lines(stdin):
if l.split()[0].lower().startswith("end"):
Expand Down Expand Up @@ -235,7 +235,7 @@ def main(args):
crdout = None
refmac_fixes = None
cispeps = []
if xyzin is not None:
if xyzin is not None and keywords["refi"].get("type") != "unre":
#tmpfd, crdout = tempfile.mkstemp(prefix="gemmi_", suffix=".crd") # TODO use dir=CCP4_SCR
#os.close(tmpfd)
st = utils.fileio.read_structure(xyzin)
Expand Down

0 comments on commit b377d36

Please sign in to comment.