@@ -118,11 +118,13 @@ class Run:
118118 @pydantic .validate_call
119119 def __init__ (
120120 self ,
121+ * ,
121122 mode : typing .Literal ["online" , "offline" , "disabled" ] = "online" ,
122123 abort_callback : typing .Callable [[Self ], None ] | None = None ,
123124 server_token : pydantic .SecretStr | None = None ,
124125 server_url : str | None = None ,
125126 debug : bool = False ,
127+ server_profile : str = "default" ,
126128 ) -> None :
127129 """Initialise a new Simvue run
128130
@@ -143,6 +145,10 @@ def __init__(
143145 overwrite value for server URL, default is None
144146 debug : bool, optional
145147 run in debug mode, default is False
148+ server_profile : str, optional
149+ specify alternative profile to use for server, this assumes
150+ additional profiles have been specified in the configuration.
151+ Default is to use the main server.
146152
147153 Examples
148154 --------
@@ -185,7 +191,10 @@ def __init__(
185191 self ._step : int = 0
186192 self ._active : bool = False
187193 self ._user_config : SimvueConfiguration = SimvueConfiguration .fetch (
188- server_url = server_url , server_token = server_token , mode = mode
194+ server_url = server_url ,
195+ server_token = server_token ,
196+ mode = mode ,
197+ profile = server_profile ,
189198 )
190199
191200 logging .getLogger (self .__class__ .__module__ ).setLevel (
0 commit comments