# http://pyrocko.org - GPLv3 # # The Pyrocko Developers, 21st Century # ---|P------/S----------~Lg----------
for source in self.sources: source.setup( squirrel, check=check, progress_viewer=progress_viewer)
try: dataset = load(filename=path) except OSError: raise SquirrelError( 'Cannot read dataset file: %s' % path)
if not isinstance(dataset, Dataset): raise SquirrelError('Invalid dataset file "%s".' % path)
dataset.set_basepath(op.dirname(path) or '.') return dataset |