Skip to content

Commit 984860b

Browse files
committed
improve variable name
1 parent 1f0f869 commit 984860b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dvc/render/converter/vega.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ def flat_datapoints(self, revision): # noqa: C901, PLR0912
209209
x_file, x_field = xs[0]
210210

211211
num_xs = len(xs)
212-
unify_x_fields = num_xs > 1 and len({x[1] for x in xs}) > 1
213-
props_update["x"] = "dvc_inferred_x_value" if unify_x_fields else x_field
212+
multiple_x_fields = num_xs > 1 and len({x[1] for x in xs}) > 1
213+
props_update["x"] = "dvc_inferred_x_value" if multiple_x_fields else x_field
214214

215215
ys = list(_get_ys(properties, file2datapoints))
216216

@@ -269,7 +269,7 @@ def flat_datapoints(self, revision): # noqa: C901, PLR0912
269269
try:
270270
_update_from_field(
271271
datapoints,
272-
field="dvc_inferred_x_value" if unify_x_fields else x_field,
272+
field="dvc_inferred_x_value" if multiple_x_fields else x_field,
273273
source_datapoints=x_datapoints,
274274
source_field=x_field,
275275
)

0 commit comments

Comments
 (0)