Skip to content

Add Timing and Sleep Functions to SmartEM and FakeDataMicroscope, and Update rescan mask method#50

Open
tathey1 wants to merge 12 commits into
mainfrom
tathey1-sleepFakeData
Open

Add Timing and Sleep Functions to SmartEM and FakeDataMicroscope, and Update rescan mask method#50
tathey1 wants to merge 12 commits into
mainfrom
tathey1-sleepFakeData

Conversation

@tathey1
Copy link
Copy Markdown
Collaborator

@tathey1 tathey1 commented Nov 15, 2024

  • Wrote decorator that prints how long a function takes to run, added the decorator to various smartem, microscope, and get_rescan_mask functions. It can be turned on or off by the variable time_on in timing.py
  • FakeDataMicroscope can now simulate real execution by sleeping during various tasks
  • Changed padding function to use cv2 which is faster
  • Changed the optimization method to control a specified rescan rate
  • The example script can do grid acquisition with the fakedatamicroscope

@tathey1 tathey1 requested a review from pythonLoader November 15, 2024 22:02
@tathey1 tathey1 changed the title Add Timing and Sleep Functions to SmartEM and FakeDataMicroscope Add Timing and Sleep Functions to SmartEM and FakeDataMicroscope, and Update rescan mask method Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant