Skip to content

Commit 8a84f46

Browse files
ChsudeeptaChsudeepta
authored andcommitted
Changed the return type to int or None
1 parent f2fdd5f commit 8a84f46

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/genie_python/genie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ def get_detector_table() -> str | None:
25582558

25592559
@usercommand
25602560
@log_command_and_handle_exception
2561-
def get_dae_autosave_freq() -> PVValue:
2561+
def get_dae_autosave_freq() -> int | None:
25622562
"""
25632563
Gets the ICP autosave frequency (Frames).
25642564
"""

src/genie_python/genie_dae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@ def integrate_spectrum(
22372237
# are in the same bin this still works
22382238
return full_count + partial_count_high - partial_count_low
22392239

2240-
def get_autosave_freq(self) -> "PVValue":
2240+
def get_autosave_freq(self) -> int | None:
22412241
"""
22422242
Gets the ICP autosave frequency (Frames).
22432243
"""

src/genie_python/genie_simulate_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ def get_table_path(self, table_type: str) -> str:
10921092
if table_type == "Spectra":
10931093
return self.change_cache.spectra
10941094

1095-
def get_autosave_freq(self) -> "PVValue":
1095+
def get_autosave_freq(self) -> int | None:
10961096
return self.autosave_freq
10971097

10981098
def set_autosave_freq(self, freq: int) -> None:

0 commit comments

Comments
 (0)