Skip to content

Commit eec9f8e

Browse files
Copilotxadupre
andauthored
style: mark sankey tolerance constant as private
Agent-Logs-Url: https://github.com/sdpython/teachpyx/sessions/68526f45-813e-4c5a-959d-84afb8a8544a Co-authored-by: xadupre <22452781+xadupre@users.noreply.github.com>
1 parent 7815890 commit eec9f8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

teachpyx/faq/faq_python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import re
66

7-
FLOW_BALANCE_TOLERANCE = 1e-10
7+
_FLOW_BALANCE_TOLERANCE = 1e-10
88

99

1010
def entier_grande_taille():
@@ -871,7 +871,7 @@ def graph_sankey(
871871
"""
872872
if len(flows) < 2:
873873
raise ValueError("flows must contain at least two values.")
874-
if abs(sum(flows)) > FLOW_BALANCE_TOLERANCE:
874+
if abs(sum(flows)) > _FLOW_BALANCE_TOLERANCE:
875875
raise ValueError("The sum of all flows must be 0.")
876876
if labels is None:
877877
labels = [None] * len(flows)

0 commit comments

Comments
 (0)