Skip to content

Commit

Permalink
fixed overwriting at 3rd file save, removed ampy
Browse files Browse the repository at this point in the history
  • Loading branch information
gdecker1 committed Jun 2, 2023
1 parent b0d2bac commit cd2c72c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lumascope_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
Gerard Decker, The Earthineering Company
MODIFIED:
April 21, 2023
June 1, 2023
'''

# Import Lumascope Hardware files
Expand Down Expand Up @@ -216,7 +216,7 @@ def save_image(self, array, save_folder = './capture', file_root = 'img_', appen
path = save_folder + '/' + filename

# Obtain next save path if current directory already exists
if os.path.exists(path):
while os.path.exists(path):
path = self.get_next_save_path(path)

try:
Expand Down
4 changes: 2 additions & 2 deletions lumaviewpro.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Gerard Decker, The Earthineering Company
MODIFIED:
May 31, 2023
June 1, 2023
'''

# General
Expand Down Expand Up @@ -357,7 +357,7 @@ def composite_capture(self):
path = save_folder + '/' + filename

# Obtain next save path if current directory already exists
if os.path.exists(path):
while os.path.exists(path):
path = lumaview.scope.get_next_save_path(path)

cv2.imwrite(path, img.astype(np.uint8))
Expand Down
6 changes: 3 additions & 3 deletions motorboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
Gerard Decker, The Earthineering Company
MODIFIED:
May 31, 2023
June 1, 2023
'''

#import threading
#import queue
import time
import requests
import ampy
# import requests
# import ampy
from requests.structures import CaseInsensitiveDict
import serial
import serial.tools.list_ports as list_ports
Expand Down

0 comments on commit cd2c72c

Please sign in to comment.