def random_iterator(self, samples_per_field=None):
        while True:
            lon = self._random_field()
            nsample = samples_per_field
            if nsample is None:
                nsample = 30000 if running_on_cloud() else 500

            for f in get_field(lon).random_stamps(nsample):
                yield f
Yield an infinite sequence of random stamp parameters
dataset/ETHPy150Open ChrisBeaumont/brut/bubbly/dr1.py/LocationGenerator.random_iterator