rsseismic.RSLog module#

class rsseismic.RSLog.RSLog(client: Client)#

Bases: object

RSLog import scripting (account or JSON file).

Authenticate once per session for account flows, then list/import. File imports do not require authenticate.

authenticate(company: str, username: str, password: str, server: str = '') → RSLogAuthenticateResult#

Log in to RSLog for this scripting session.

If twoFactorRequired is true, call verifyTwoFactor before account list/import RPCs.

verifyTwoFactor(company: str, username: str, password: str, twoFactorCode: str, server: str = '') → RSLogAuthenticateResult#

Complete login when authenticate returned twoFactorRequired=True.

listProjects(*, jsonFilePath: str | None = None, server: str | None = None, onlyProjectsWithTestHoles: bool = True) → list[RSLogProjectInfo]#

List RSLog projects from an account session or a JSON export file.

Pass jsonFilePath for file source; otherwise uses the authenticated account (optional server overrides the account server hint).

listBoreholes(projectId: str, *, jsonFilePath: str | None = None, server: str | None = None) → list[RSLogBoreholeInfo]#

List boreholes (test holes) for an RSLog project (account or file).

listPiezometerGroundwaterMeasurements(piezometerId: str, server: str = '') → list[RSLogGroundwaterMeasurementInfo]#

List groundwater measurements for a piezometer (account session required).

importBoreholes(model: Model | str, projectId: str, boreholes: list[RSLogBoreholeImportSpec], *, jsonFilePath: str | None = None, server: str | None = None, unitMismatchPolicy: UnitMismatchPolicy = UnitMismatchPolicy.KEEP_PROJECT, multiProfilePolicy: MultiProfilePolicy = MultiProfilePolicy.ENABLE_IF_NEEDED, autoProfilePolicy: AutoProfilePolicy = AutoProfilePolicy.KEEP, profileMergeMode: ProfileMergeMode = ProfileMergeMode.REPLACE_ALL, setMeanProfileFromFirst: bool = False) → RSLogImportBoreholesResult#

Import RSLog boreholes into an open project as profiles.

Pass jsonFilePath for file source; otherwise uses the authenticated account.