rsseismic.Motions module#

class rsseismic.Motions.Motions(client: Client, modelId: str)#

Bases: _ProxyObject

Ground motion directories, scanning, listing, and selection for an open model.

listMotionDirectories() list[str]#

Return motion directories currently associated with this project.

addMotionDirectory(motionDirectory: str) list[str]#

Add a folder to app motion-directory preferences (global, not project-specific).

Returns the updated list of preference directories. If the directory is already listed, the server returns success with a warning.

removeMotionDirectory(motionDirectory: str) list[str]#

Remove a folder from app motion-directory preferences.

At least one directory must remain. Returns the updated preference list.

refreshMotionsList() int#

Copy preference directories onto the project and rescan motion files.

Returns the number of motions loaded.

listMotions() list[MotionInfo]#

Return all motions with name, file path, and selection state (uni-directional projects only).

setMotionSelection(motionNames: list[str], selectOnlyListed: bool = True) None#

Select motions by name (uni-directional projects only).

When selectOnlyListed is True (default), only the listed motions remain selected.

listMotionPairs() list[MotionPairInfo]#

Return horizontal motion pairs inferred from file names (bi-directional projects only).

setMotionPairSelection(pairIds: list[str], selectOnlyListed: bool = True) None#

Select motion pairs by pair id (bi-directional projects only).

When selectOnlyListed is True (default), only the listed pairs remain selected. Selecting a pair selects both horizontal components.

selectAllMotions() None#

Select all motions (uni-directional) or all motion pairs (bi-directional).

deselectAllMotions() None#

Deselect all motions (uni-directional) or all motion pairs (bi-directional).

selectAllMotionsInDirectory(motionDirectory: str) None#

Select all motions or pairs (by H1 folder) whose files are in the given directory.

deselectAllMotionsInDirectory(motionDirectory: str) None#

Deselect all motions or pairs (by H1 folder) whose files are in the given directory.