Skip to content

Commit

Permalink
fix: issue with list when np array is expected
Browse files Browse the repository at this point in the history
Convert to np array in pump system

Refs:
equinor/ecalc-internal#408
  • Loading branch information
jsolaas committed Jan 23, 2025
1 parent 05d079a commit baf8279
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@ def evaluate_consumers(
logger.debug(f"Evaluating running pump#{pump_number} out of {self.number_of_consumers} pumps")

pump_model_result = pump.facility_model.evaluate_rate_ps_pd_density(
rate=consumer_rates[pump_number],
suction_pressures=consumer_suction_pressures[pump_number],
discharge_pressures=consumer_discharge_pressures[pump_number],
fluid_density=consumer_fluid_densities[pump_number],
rate=np.asarray(consumer_rates[pump_number]),
suction_pressures=np.asarray(consumer_suction_pressures[pump_number]),
discharge_pressures=np.asarray(consumer_discharge_pressures[pump_number]),
fluid_density=np.asarray(consumer_fluid_densities[pump_number]),
)
pump_result = PumpResult(
name=pump.name,
Expand Down

0 comments on commit baf8279

Please sign in to comment.