@@ -32,27 +32,26 @@ class RaspaProfile(BaseProfile):
3232 RASPA profile, which defines the command that will be executed and where.
3333 """
3434
35- def __init__ (self , binary : Path | str | None = None , ** kwargs ) -> None :
35+ def __init__ (self , command : Path | str | None = None , ** kwargs ) -> None :
3636 """
3737 Initialize the RASPA profile. $RASPA_DIR must be set in the environment.
3838
3939 Parameters
4040 ----------
41- binary
42- The binary to run RASPA. This defaults to doing `${RASPA_DIR}/bin/simulate`
41+ command
42+ The command to run RASPA. This defaults to doing `${RASPA_DIR}/bin/simulate`
4343 and typically does not need to be changed.
4444
4545 Returns
4646 -------
4747 None
4848 """
49- super ().__init__ (** kwargs )
50- if not binary :
49+ if not command :
5150 raspa_dir = os .environ .get ("RASPA_DIR" )
5251 if not raspa_dir :
5352 raise OSError ("RASPA_DIR environment variable not set" )
54- binary = f"{ raspa_dir } /bin/simulate"
55- self . binary = binary
53+ command = f"{ raspa_dir } /bin/simulate"
54+ super (). __init__ ( command , ** kwargs )
5655
5756 def get_calculator_command (self , inputfile : str = SIMULATION_INPUT ) -> list [str ]:
5857 """
@@ -68,7 +67,7 @@ def get_calculator_command(self, inputfile: str = SIMULATION_INPUT) -> list[str]
6867 list[str]
6968 The command to run the calculator.
7069 """
71- return [self .binary , f"{ inputfile } " ]
70+ return [self .command , f"{ inputfile } " ]
7271
7372 def version (self ) -> str :
7473 """
0 commit comments