Skip to content

Commit ff7a88e

Browse files
authored
Merge pull request #273 from alexlib/master
2 parents 2a5b1ae + 52db28d commit ff7a88e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openpiv/windef.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ class PIVSettings:
163163

164164
invert: bool=False # for the test_invert
165165

166+
fmt: str="%.4e"
167+
166168
def prepare_images(
167169
file_a: pathlib.Path,
168170
file_b: pathlib.Path,
@@ -466,7 +468,7 @@ def func(args):
466468
print(f'Saving to {txt_file}')
467469
fig_name = save_path / f'field_A{counter:04d}.png'
468470

469-
tools.save(txt_file, x, y, u, v, flags, grid_mask)
471+
tools.save(txt_file, x, y, u, v, flags, grid_mask, fmt=settings.fmt)
470472

471473
if settings.show_plot or settings.save_plot:
472474
fig, _ = display_vector_field(

0 commit comments

Comments
 (0)