Skip to content

Commit

Permalink
set HDF5 plugin path in tools.call_indexamajig
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Buecker committed Jan 21, 2022
1 parent d82733b commit 09bd80f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion diffractem/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ def call_indexamajig(input, geometry, output='im_out.stream', cell: Optional[str
options = dict(im_params if im_params is not None else {}, **({} if index_params is None else index_params), **kwargs)
options = {k.replace('_', '-'): v for k, v in options.items()}

cmd = make_command(exc, None, params=exc_dic, opts=options)
import hdf5plugin
cmd = 'export HDF5_PLUGIN_PATH=' + os.path.join(os.path.dirname(hdf5plugin.__file__), 'plugins') + '\n'
cmd += make_command(exc, None, params=exc_dic, opts=options)

for f in copy_fields:
cmd += f' --copy-hdf5-field={f}'
Expand Down

0 comments on commit 09bd80f

Please sign in to comment.