@@ -177,7 +177,7 @@ def get_block_units(block_name: str) -> str | None:
177177 Args:
178178 block_name: name of the block
179179
180- Returns
180+ Returns:
181181 string: units of the block
182182 """
183183 return _genie_api .get_block_units (block_name )
@@ -1162,10 +1162,10 @@ def get_time_since_begin(get_timedelta: bool = False) -> float | datetime.timede
11621162 get_timedelta (bool): If true return the value as a datetime object,
11631163 otherwise return seconds (defaults to false)
11641164
1165- Returns
1166- integer: the time since start in seconds if get_datetime is False,
1167- or timedelta, the time since begin as a datetime.timedelta object
1168- (Year-Month-Day Hour:Minute:Second) if get_datetime is True
1165+ Returns:
1166+ integer: The time since start in seconds if get_datetime is False,
1167+ or timedelta, the time since begin as a datetime.timedelta object
1168+ (Year-Month-Day Hour:Minute:Second) if get_datetime is True
11691169 """
11701170 assert _genie_api .dae is not None
11711171 return _genie_api .dae .get_time_since_begin (get_timedelta )
@@ -1460,7 +1460,7 @@ def load_script(name: str, check_script: bool = True, warnings_as_error: bool =
14601460
14611461 Args:
14621462 name (string): the name of the file to load. If this is not a
1463- full path the file is assumed to be in C:\\ scripts
1463+ full path, the file is assumed to be in ` C:\\ \\ scripts`
14641464 check_script: When True run the script checker on the script;
14651465 False otherwise (default True)
14661466 warnings_as_error: When true throw an exception on a warning;
@@ -1665,7 +1665,9 @@ def change_tables(
16651665) -> None :
16661666 """
16671667 Load the wiring, detector and/or spectra tables.
1668+
16681669 Checks that the file paths are valid, throws exception if not.
1670+
16691671 Args:
16701672 wiring (string, optional): the filename of the wiring table file
16711673 detector (string, optional): the filename of the detector table file
@@ -1729,7 +1731,7 @@ def change_sync(source: str) -> None:
17291731 'muon cerenkov',
17301732 'muon ms',
17311733 'isis (first ts1)'
1732- )
1734+ )
17331735 """
17341736 assert _genie_api .dae is not None
17351737 _genie_api .dae .change_sync (source )
@@ -1765,7 +1767,7 @@ def change_tcb(
17651767 Change the time channel boundaries.
17661768 If None is specified for low, high or step then the values are left unchanged.
17671769
1768- Args
1770+ Args:
17691771 low (float, optional): the lower limit. Default is no change from the current value.
17701772 high (float, optional): the upper limit. Default is no change from the current value.
17711773 step (float,optional): the step size. Default is no change from the current value.
@@ -2314,7 +2316,8 @@ def change_beamline_par(name: str, value: PVValue) -> None:
23142316def send_sms (phone_num : str , message : str ) -> None :
23152317 """
23162318 Sends an SMS message to a phone number.
2317- If you are sending to messages to the same number often consider using g.alerts.send()
2319+
2320+ If you are sending to messages to the same number often, consider using `g.alerts.send()`
23182321
23192322 Args:
23202323 phone_num (string): the phone number to send the SMS to
@@ -2497,6 +2500,7 @@ def set_dae_simulation_mode(mode: bool, skip_required_runstates: bool = False) -
24972500def get_dae_simulation_mode () -> bool :
24982501 """
24992502 Gets the DAE simulation mode.
2503+
25002504 Returns:
25012505 True if the DAE is in simulation mode, False otherwise.
25022506 """
@@ -2523,7 +2527,7 @@ def load(name: str) -> None:
25232527@usercommand
25242528@log_command_and_handle_exception
25252529def get_wiring_table () -> str | None :
2526- """Gets the current wiring table path"
2530+ """Gets the current wiring table path.
25272531
25282532 Returns:
25292533 The file path of the current wiring table.
@@ -2535,7 +2539,7 @@ def get_wiring_table() -> str | None:
25352539@usercommand
25362540@log_command_and_handle_exception
25372541def get_spectra_table () -> str | None :
2538- """Gets the current spectra table path"
2542+ """Gets the current spectra table path.
25392543
25402544 Returns:
25412545 The file path of the current spectra table.
@@ -2547,7 +2551,7 @@ def get_spectra_table() -> str | None:
25472551@usercommand
25482552@log_command_and_handle_exception
25492553def get_detector_table () -> str | None :
2550- """Gets the current detector table path"
2554+ """Gets the current detector table path.
25512555
25522556 Returns:
25532557 The file path of the current detector table.
@@ -2571,6 +2575,9 @@ def get_dae_autosave_freq() -> int | None:
25712575def set_dae_autosave_freq (freq : int ) -> None :
25722576 """
25732577 Sets the ICP autosave frequency (Frames).
2578+
2579+ Args:
2580+ freq: The autosave frequency in frames.
25742581 """
25752582 assert _genie_api .dae is not None
25762583 return _genie_api .dae .set_autosave_freq (freq )
0 commit comments