Skip to content

Commit 8bd5240

Browse files
committed
Python: make fast_mode default
1 parent e77ce3f commit 8bd5240

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Utilities/Python/fdsplotlib.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,11 @@ def read_csv_cached(path, **kwargs):
334334

335335
# Detect fast_mode: skip expensive DataFrame access when processing all rows
336336
plot_list_lower = [p.lower() for p in plot_list] if plot_list else []
337-
fast_mode = (
338-
(plot_range_in and isinstance(plot_range_in, list) and any(str(p).lower() == "all" for p in plot_range_in))
339-
or ("all" in plot_list_lower)
340-
)
341-
if fast_mode and verbose:
342-
print("[dataplot] Running in fast_mode (bypassing define_plot_parameters and Dataname scans)")
337+
338+
# Toggle stays, but defaults to fast everywhere
339+
fast_mode = bool(kwargs.get('fast_mode', True))
340+
if verbose:
341+
print(f"[dataplot] {'Running in fast_mode (lightweight define_plot_parameters)' if fast_mode else 'Running in full mode'}")
343342

344343
for pos, row in enumerate(C.itertuples(index=False, name=None)):
345344

0 commit comments

Comments
 (0)