You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could anyone please help me? I get this error when I try to run scenarios, apparently is everything ok to me with input data..
Running Scenario: all_controls_ipu
IPF for Entity: household complete
IPF for Entity: person complete
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\project.py", line 56, in run_scenarios
scenario_obj.run_scenario()
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\project.py", line 73, in run_scenario
self._run_ipf()
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\project.py", line 86, in _run_ipf
self.run_ipf_obj.run_ipf()
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\ipf.py", line 178, in run_ipf
region_ids, region_to_sample))
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\ipf.py", line 219, in _run_ipf_for_resolution
variable_names))
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\data.py", line 102, in return_variables_cats
(entity, variable_name))
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\data.py", line 106, in return_variable_cats
return np.unique(self.sample[entity][variable_name].values).tolist()
File "C:\Python27.9\lib\site-packages\pandas\core\frame.py", line 1791, in getitem
return self._getitem_column(key)
File "C:\Python27.9\lib\site-packages\pandas\core\frame.py", line 1798, in _getitem_column
return self._get_item_cache(key)
File "C:\Python27.9\lib\site-packages\pandas\core\generic.py", line 1084, in _get_item_cache
values = self._data.get(item)
File "C:\Python27.9\lib\site-packages\pandas\core\internals.py", line 2851, in get
loc = self.items.get_loc(item)
File "C:\Python27.9\lib\site-packages\pandas\core\index.py", line 1578, in get_loc
return self._engine.get_loc(_values_from_object(key))
File "pandas\index.pyx", line 134, in pandas.index.IndexEngine.get_loc (pandas\index.c:3811)
File "pandas\index.pyx", line 154, in pandas.index.IndexEngine.get_loc (pandas\index.c:3691)
File "pandas\hashtable.pyx", line 697, in pandas.hashtable.PyObjectHashTable.get_item (pandas\hashtable.c:12336)
File "pandas\hashtable.pyx", line 705, in pandas.hashtable.PyObjectHashTable.get_item (pandas\hashtable.c:12287)
KeyError: 'rpgen'
rpgen is one of the control variables I want to use
The text was updated successfully, but these errors were encountered:
Could anyone please help me? I get this error when I try to run scenarios, apparently is everything ok to me with input data..
Running Scenario: all_controls_ipu
IPF for Entity: household complete
IPF for Entity: person complete
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\project.py", line 56, in run_scenarios
scenario_obj.run_scenario()
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\project.py", line 73, in run_scenario
self._run_ipf()
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\project.py", line 86, in _run_ipf
self.run_ipf_obj.run_ipf()
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\ipf.py", line 178, in run_ipf
region_ids, region_to_sample))
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\ipf.py", line 219, in _run_ipf_for_resolution
variable_names))
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\data.py", line 102, in return_variables_cats
(entity, variable_name))
File "C:\Python27.9\lib\site-packages\popgen-2.0.b2-py2.7.egg\popgen\data.py", line 106, in return_variable_cats
return np.unique(self.sample[entity][variable_name].values).tolist()
File "C:\Python27.9\lib\site-packages\pandas\core\frame.py", line 1791, in getitem
return self._getitem_column(key)
File "C:\Python27.9\lib\site-packages\pandas\core\frame.py", line 1798, in _getitem_column
return self._get_item_cache(key)
File "C:\Python27.9\lib\site-packages\pandas\core\generic.py", line 1084, in _get_item_cache
values = self._data.get(item)
File "C:\Python27.9\lib\site-packages\pandas\core\internals.py", line 2851, in get
loc = self.items.get_loc(item)
File "C:\Python27.9\lib\site-packages\pandas\core\index.py", line 1578, in get_loc
return self._engine.get_loc(_values_from_object(key))
File "pandas\index.pyx", line 134, in pandas.index.IndexEngine.get_loc (pandas\index.c:3811)
File "pandas\index.pyx", line 154, in pandas.index.IndexEngine.get_loc (pandas\index.c:3691)
File "pandas\hashtable.pyx", line 697, in pandas.hashtable.PyObjectHashTable.get_item (pandas\hashtable.c:12336)
File "pandas\hashtable.pyx", line 705, in pandas.hashtable.PyObjectHashTable.get_item (pandas\hashtable.c:12287)
KeyError: 'rpgen'
rpgen is one of the control variables I want to use
The text was updated successfully, but these errors were encountered: