# If the read Phi-file has only one line -- it's a single point registration!
ifPhiFromFile['fieldCoords'].shape[0]==1:
...
...
@@ -143,7 +148,15 @@ if args.PHIFILE is not None:
print(f"spam-ddic: Input PhiField positions from {args.PHIFILE.name} are not within 1px of the centre of mass of the labels from {args.lab1.name}, this seems dangerous.")
print(f"\tplease consider using spam-passPhiField to apply your PhiField to a new labelled image")
exit()
else:
ifargs.SKIP_PARTICLES:
#Read the previous result for all grains -- new grains will be overwritten