Skip to content

Commit

Permalink
Merge pull request #323 from rafalkowalewski1/development
Browse files Browse the repository at this point in the history
test_localize fix
  • Loading branch information
rafalkowalewski1 authored Feb 17, 2023
2 parents 475e24e + ddc98e2 commit ab8ee77
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion picasso/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,10 @@ def _localize(args):
raise Exception("GPUfit not installed. Aborting.")

for index, element in enumerate(vars(args)):
print("{:<8} {:<15} {:<10}".format(index + 1, element, getattr(args, element)))
try:
print("{:<8} {:<15} {:<10}".format(index + 1, element, getattr(args, element)))
except TypeError: # if None is default value
print("{:<8} {:<15} {}".format(index + 1, element, "None"))
print("------------------------------------------")

def check_consecutive_tif(filepath):
Expand Down Expand Up @@ -848,6 +851,7 @@ def prompt_info():
save_info(info_path, [info])

if paths:
print(args)
box = args.box_side_length
min_net_gradient = args.gradient
roi = args.roi
Expand Down
Binary file modified tests/data/testdata_locs.hdf5
Binary file not shown.
6 changes: 4 additions & 2 deletions tests/data/testdata_locs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ Structure.StructureY: 0,20,40,60,0,20,40,60,0,20,40,60
Width: 32
---
Box Size: 7
Fit method: LQ, Gaussian
Convergence Criterion: 0.001
Fit method: mle
Generated by: Picasso Localize
Min. Net Gradient: 3000
Max. Iterations: 1000
Min. Net Gradient: 5000
Pixelsize: 130
ROI: null
1 change: 1 addition & 0 deletions tests/test_localize.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def test_localize():
args.sensitivity = 1
args.gain = 1
args.qe = 1
args.roi = None
args.drift = 100

for fit_method in ["mle"]:
Expand Down

0 comments on commit ab8ee77

Please sign in to comment.