Skip to content

Commit

Permalink
Snakecase writeTiffs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefsmeets committed Jun 23, 2023
1 parent 451f3dc commit ef07898
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/instamatic/camera/camera_emmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def writeTiff(self, image_index, filename: str) -> None:

self.writeTiffFromPointer(p, filename)

def writeTiffs(self, start_index: int, stop_index: int, path: str, clear_buffer: bool = False) -> None:
def write_tiffs(self, start_index: int, stop_index: int, path: str, clear_buffer: bool = False) -> None:
"""Write a series of data in tiff format and writes them to the given
`path` using EMMENU machinery."""
path = Path(path)
Expand Down
2 changes: 1 addition & 1 deletion src/instamatic/camera/camera_gatan2.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def writeTiff(self, filename: str) -> None:
"""Write tiff file using the DM machinery."""
raise NotImplementedError

def writeTiffs(self) -> None:
def write_tiffs(self) -> None:
"""Write a series of data in tiff format and writes them to the given
`path`"""
raise NotImplementedError
Expand Down
2 changes: 1 addition & 1 deletion src/instamatic/camera/camera_simu.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,5 @@ def get_timestamps(self, start_index, end_index):
def getBinning(self):
return self.default_binsize

def writeTiffs(self, start_index: int, stop_index: int, path: str, clear_buffer=True) -> None:
def write_tiffs(self, start_index: int, stop_index: int, path: str, clear_buffer=True) -> None:
pass
2 changes: 1 addition & 1 deletion src/instamatic/experiments/cred_tvips/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def start_collection(self, target_angle: float, start_angle: float = None, manua
path_data = self.path / 'tiff'
path_data.mkdir(exist_ok=True, parents=True)

self.emmenu.writeTiffs(start_index, end_index, path=path_data)
self.emmenu.write_tiffs(start_index, end_index, path=path_data)

if self.track:
# Center crystal position
Expand Down

0 comments on commit ef07898

Please sign in to comment.