Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running #9

Open
MAlbertini95 opened this issue Aug 27, 2019 · 0 comments
Open

Error while running #9

MAlbertini95 opened this issue Aug 27, 2019 · 0 comments

Comments

@MAlbertini95
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant