Skip to content

Commit

Permalink
Update power_loss to not have int dtype initially to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTranter committed Jan 20, 2024
1 parent 51ec8b3 commit 2587378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liionpack/netlist_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def power_loss(netlist, include_Ri=False):
R_node2_V = V_node[R_node2]
V_diff = np.abs(R_node1_V - R_node2_V)
P_loss = V_diff**2 / R_value
netlist["power_loss"] = 0
netlist["power_loss"] = 0.0
netlist.loc[R_map, ("power_loss")] = P_loss


Expand Down

0 comments on commit 2587378

Please sign in to comment.