Skip to content

Commit

Permalink
Change argument names to match finding_fitting_error.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazen Babcock committed Sep 25, 2017
1 parent 784a68a commit d278bfd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions storm_analysis/sa_utilities/recall_fraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ def recallFraction(truth_name, measured_name, tolerance):

parser = argparse.ArgumentParser(description = 'Calculate recall fraction (in XY).')

parser.add_argument('--truth', dest='truth', type=str, required=True,
help = "Localization ground truth positions.")
parser.add_argument('--found', dest='found', type=str, required=True,
help = "Localization found positions.")
parser.add_argument('--truth_bin', dest='truth_bin', type=str, required=True,
help = "Ground truth localization file.")
parser.add_argument('--measured_bin', dest='measured_bin', type=str, required=True,
help = "Measured localization file.")
parser.add_argument('--tolerance', dest='tolerance', type=float, default = 0.2, required=False,
help = "Tolerance in position difference in pixels.")

args = parser.parse_args()

[recalled_locs, total_locs] = recallFraction(args.truth, args.found, args.tolerance)
[recalled_locs, total_locs] = recallFraction(args.truth_bin, args.measured_bin, args.tolerance)

print("Recall fraction {0:.3f}".format(float(recalled_locs)/float(total_locs)))

Expand Down

0 comments on commit d278bfd

Please sign in to comment.