rsseismic.Preferences module#
- class rsseismic.Preferences.Preferences(client: Client)#
Bases:
objectRSSeismic application preferences persisted in
DeepSoilPreferences.These settings are global to the application (not per open project). Use
getDefaultUnitSystem()andchangeDefaultUnitSystem()for the default unit system applied to new projects (distinct frommodel.ProjectSettingson an open project).- getDefaultUnitSystem() UnitSystem#
Return the default unit system preference (Metric or Imperial).
- changeDefaultUnitSystem(unitSystem: UnitSystem) UnitSystem#
Set the default unit system preference. Returns the unit system now in effect.
- getMaxConcurrentAnalyses() int#
Return the effective maxConcurrentAnalyses from RSSeismic preferences.
This is the within-project cap on simultaneous engine runs used during RunCompute. Batch parallel_degree capping uses this value when available.
- setMaxConcurrentAnalyses(maxConcurrentAnalyses: int) int#
Set maxConcurrentAnalyses in RSSeismic preferences (within-project engine cap).
Values are clamped to 1..256, matching the Preferences UI. Returns the effective value after save (same semantics as getMaxConcurrentAnalyses).
- getWorkingDirectory() str#
Return the results working directory from preferences (empty means not set).
- setWorkingDirectory(workingDirectory: str) str#
Set the results working directory preference.
Pass an empty string to clear. Non-empty paths must exist on disk.