Skip to content

Commit

Permalink
Combine optical and hrdic grain inspectors
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysgt committed Nov 21, 2024
1 parent 1bd2a4f commit cb1ffd2
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 448 deletions.
6 changes: 3 additions & 3 deletions defdap/hrdic.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,10 @@ def generate_threshold_mask(self, mask, dilation=0, preview=True):
num_removed_crop = np.sum(self.crop(self.mask))
num_total_crop = self.x_dim * self.y_dim

print('Filtering will remove {0} \ {1} ({2:.3f} %) datapoints in map'
print('Filtering will remove {0} / {1} ({2:.3f} %) datapoints in map'
.format(num_removed, num_total, (num_removed / num_total) * 100))
print(
'Filtering will remove {0} \ {1} ({2:.3f} %) datapoints in cropped map'
'Filtering will remove {0} / {1} ({2:.3f} %) datapoints in cropped map'
.format(num_removed_crop, num_total_crop,
(num_removed_crop / num_total_crop * 100)))

Expand Down Expand Up @@ -725,7 +725,7 @@ def grain_inspector(self, vmax=0.1, correction_angle=0, rdr_line_length=3):
Length of lines perpendicular to slip trace used to calculate RDR.
"""
GrainInspector(selected_dic_map=self, vmax=vmax, correction_angle=correction_angle,
GrainInspector(selected_map=self, vmax=vmax, correction_angle=correction_angle,
rdr_line_length=rdr_line_length)


Expand Down
Loading

0 comments on commit cb1ffd2

Please sign in to comment.