Skip to content

Commit b93cdf0

Browse files
authored
Merge pull request #257 from PyAutoLabs/feature/small-datasets-skip-oversampling
perf: force over_sample_size=2 when PYAUTO_WORKSPACE_SMALL_DATASETS=1
2 parents a11e5e0 + b1a8e5c commit b93cdf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoarray/structures/grids/uniform_2d.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ def __init__(
171171

172172
grid_2d_util.check_grid_2d(grid_2d=values)
173173

174+
if os.environ.get("PYAUTO_WORKSPACE_SMALL_DATASETS") == "1":
175+
over_sample_size = 2
176+
174177
self._over_sample_size = over_sample_size
175178

176179
self._over_sampler = over_sampler

0 commit comments

Comments
 (0)