Skip to content

Extraneous kwargs "model_ws" provided to MFModel #1115

@wkitlasten

Description

@wkitlasten

I have several gwf models under the same simulation and would like to have them under their own subfolders (because I'm crazy like that). When I try:

flopy.mf6.ModflowGwf(sim, model_ws=m_ws,
                                modelname=m_name,
                                model_nam_file=m_name+'.nam',
                                save_flows=True)

I get:

c:\programdata\anaconda3\envs\py37\lib\site-packages\flopy\mf6\modflow\mfgwf.py in __init__(self, simulation, modelname, model_nam_file, version, exe_name, model_rel_path, list, print_input, print_flows, save_flows, newtonoptions, packages, **kwargs)
    102             exe_name=exe_name,
    103             model_rel_path=model_rel_path,
--> 104             **kwargs
    105         )
    106 

c:\programdata\anaconda3\envs\py37\lib\site-packages\flopy\mf6\mfmodel.py in __init__(self, simulation, model_type, modelname, model_nam_file, version, exe_name, add_to_simulation, structure, model_rel_path, verbose, **kwargs)
    178                 "MFModel.".format(kwargs_str)
    179             )
--> 180             raise FlopyException(excpt_str)
    181 
    182         # build model name file

FlopyException: FlopyException: Extraneous kwargs "model_ws" provided to MFModel. ()

It works fine if I remove the 'model_ws' kwarg. From what I can tell, the "latest" mfgwf module should take the 'model_ws' kwarg, no?

I am using flopy version: 3.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions