File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22import logging
3+ import os
34from enum import Enum
45import numpy as np
56from pathlib import Path
@@ -359,6 +360,11 @@ def circular(
359360 and visa versa.
360361 """
361362
363+ if os .environ .get ("PYAUTO_WORKSPACE_SMALL_DATASETS" ) == "1" :
364+ if shape_native [0 ] > 15 or shape_native [1 ] > 15 :
365+ shape_native = (15 , 15 )
366+ pixel_scales = 0.6
367+
362368 pixel_scales = geometry_util .convert_pixel_scales_2d (pixel_scales = pixel_scales )
363369
364370 mask = mask_2d_util .mask_2d_circular_from (
Original file line number Diff line number Diff line change 11from __future__ import annotations
2+ import os
23import numpy as np
34from pathlib import Path
45from typing import List , Optional , Tuple , Union
@@ -486,6 +487,11 @@ def uniform(
486487 origin
487488 The origin of the grid's mask.
488489 """
490+ if os .environ .get ("PYAUTO_WORKSPACE_SMALL_DATASETS" ) == "1" :
491+ if shape_native [0 ] > 15 or shape_native [1 ] > 15 :
492+ shape_native = (15 , 15 )
493+ pixel_scales = 0.6
494+
489495 pixel_scales = geometry_util .convert_pixel_scales_2d (pixel_scales = pixel_scales )
490496
491497 grid_slim = grid_2d_util .grid_2d_slim_via_shape_native_from (
You can’t perform that action at this time.
0 commit comments