problem with example repository

16 views
Skip to first unread message

John F. Burkhart

unread,
May 9, 2018, 8:02:01 AM5/9/18
to shyft
Hello,

When working with the latest code base, the simulation_configured notebook is no longer working due to an error in the repository. I don't recall a change that would have impacted this repository.

Could it be a result of the recent refactoring?

-john


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-6-856a1ffe83be> in <module>()
      4 # but the .yaml configs are the most straight forward
      5 
----> 6 simulator = ConfigSimulator(cfg)
      7 # Now the simulator is ready to run!

~/shyft_workspace/shyft/shyft/orchestration/simulators/config_simulator.py in __init__(self, arg)
     25         else:
     26             super().__init__(arg.region_model_id, arg.interpolation_id, arg.get_region_model_repo(),
---> 27                              arg.get_geots_repo(), arg.get_interp_repo(), initial_state_repository=arg.get_initial_state_repo())
     28             self.region_model_id = arg.region_model_id
     29             self.region_model.initialize_cell_environment(arg.time_axis)

~/shyft_workspace/shyft/shyft/orchestration/configuration/yaml_configs.py in get_geots_repo(self)
    179 
    180     def get_geots_repo(self):
--> 181         return self.construct_geots_repo(self.datasets_config, self.region_config.domain()["EPSG"])
    182 
    183     def get_region_model_repo(self):

~/shyft_workspace/shyft/shyft/orchestration/configuration/yaml_configs.py in construct_geots_repo(datasets_config, epsg)
    149                 source['params'].update({'epsg': epsg})
    150             # geo_ts_repos.append(geo_ts_repo_constructor(source['repository'], source['params'], self.region_config))
--> 151             geo_ts_repos.append(geo_ts_repo_constructor(source['repository'], source['params']))
    152             src_types_to_extract.append(source['types'])
    153         return geo_ts_repository_collection.GeoTsRepositoryCollection(geo_ts_repos,

~/shyft_workspace/shyft/shyft/orchestration/configuration/yaml_constructors.py in geo_ts_repo_constructor(cls, params)
     34     else:
     35         #params.update({'epsg': region_config.domain()["EPSG"]})
---> 36         return cls(**params)
     37 
     38 def region_model_repo_constructor(cls,region_config, model_config, region_model_id):

TypeError: __init__() got an unexpected keyword argument 'stations_met'
Message has been deleted

John F. Burkhart

unread,
May 9, 2018, 9:21:54 AM5/9/18
to shyft
Okay, seems this is related to PR #253 in shyft. Some updates to the notebook are required.


Reply all
Reply to author
Forward
0 new messages