Skip to content

Commit

Permalink
Restore ion imaging current, add missing datetime import (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
GenevieveBuckley authored Dec 4, 2020
1 parent b258224 commit 980ec61
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autolamella/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.4"
__version__ = "0.1.5"
3 changes: 3 additions & 0 deletions autolamella/acquire.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,15 @@ def save_final_images(microscope, settings, lamella_number):
microscope.imaging.set_active_view(2) # the ion beam view
microscope.auto_functions.run_auto_cb()
if settings["imaging"]["full_field_ib_images"]:
original_ion_current = microscope.beams.ion_beam.beam_current.value
microscope.beams.ion_beam.beam_current.value = 20e-12 # ion imaging
image = grab_ion_image(microscope, fullfield_cam_settings)
filename = os.path.join(
output_dir, "IB_lamella{}-milling-complete.tif".format(
lamella_number + 1)
)
image.save(filename)
microscope.beams.ion_beam.beam_current.value = original_ion_current
sem_adorned_image = grab_sem_image(microscope, fullfield_cam_settings)
sem_fname = "SEM_lamella{}-milling-complete.tif".format(lamella_number + 1)
sem_filename = os.path.join(output_dir, sem_fname)
Expand Down
1 change: 1 addition & 0 deletions autolamella/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from datetime import datetime
import logging
import os

Expand Down
4 changes: 2 additions & 2 deletions autolamella/milling.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,5 +313,5 @@ def mill_all_stages(
if stage_number + 1 == len(protocol_stages):
save_final_images(microscope, settings, lamella_number)
reset_state(microscope, settings)
# Return ion beam current to imaging current (20 pico-Amps)
microscope.beams.ion_beam.beam_current.value = 20e-12
# Return ion beam current to imaging current (20 pico-Amps)
microscope.beams.ion_beam.beam_current.value = 20e-12

0 comments on commit 980ec61

Please sign in to comment.