Skip to content

Commit

Permalink
Merge branch 'main' of github.com:rs-station/laue-dials
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceWalnut committed Nov 28, 2023
2 parents d250f52 + 2e154dc commit e3cd006
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/laue_dials/command_line/optimize_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

import libtbx.phil
import numpy as np
from dials.array_family.flex import reflection_table
from dials.array_family import flex
from dials.array_family.flex import reflection_table
from dials.util import show_mail_handle_errors
from dials.util.options import (ArgumentParser,
reflections_and_experiments_from_files)
Expand Down Expand Up @@ -310,11 +310,11 @@ def run(args=None, *, phil=working_phil):
total_reflections.extend(output[i][1])

# Give all unindexed experiments wavelength 0
hkls = np.asarray(total_reflections['miller_index'])
sel = np.all(hkls == [0,0,0], axis=1)
lams = np.asarray(total_reflections['wavelength'])
lams[sel] = 0.
total_reflections['wavelength'] = flex.double(lams)
hkls = np.asarray(total_reflections["miller_index"])
sel = np.all(hkls == [0, 0, 0], axis=1)
lams = np.asarray(total_reflections["wavelength"])
lams[sel] = 0.0
total_reflections["wavelength"] = flex.double(lams)

# Save experiments
logger.info("Saving optimized experiments to %s", params.output.experiments)
Expand Down
6 changes: 3 additions & 3 deletions src/laue_dials/utils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

def laue_version():
try:
width = os.get_terminal_size().columns
width = os.get_terminal_size().columns
except:
width = 65
dials_version = version('dials')
laue_dials_version = version('laue-dials')
dials_version = version("dials")
laue_dials_version = version("laue-dials")

print("-" * width)
print(f"DIALS version " + dials_version + ".")
Expand Down

0 comments on commit e3cd006

Please sign in to comment.