@staticmethod
    def load(f, model, ext_unit_dict=None):

        if model.verbose:
            sys.stdout.write('loading swi package file...\n')

        if not hasattr(f, 'read'):
            filename = f
            f = open(filename, 'r')
        # dataset 0 -- header
        while True:
            line = f.readline()
            if line[0] != '#':
                break
        # determine problem dimensions
        nrow, ncol, nlay, nper = model.get_nrow_ncol_nlay_nper()

        print('   Warning: load method not completed. default swi object created.')

        # close the open file
        f.close()

        swi = ModflowSwi(model)
        return swi
Load an existing package.
dataset/ETHPy150Open modflowpy/flopy/flopy/modflow/mfswi.py/ModflowSwi.load