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
…tion update (#390)
* update the introdction example to use the demo datafiles
* update the lcz example
* add nbsphinx to extensions
* examples in seperate folder
* converted examples into notebooks
* created a concat_save function to fix the Futurewarning of pandas for concating empyt and NA-entrie dataframes
* fixed the futurwarning when appending an emtpy multiindex
* add notebook checkpoints to the ignore
* Updated the examples for the documentation.
* delete checkpoints from git
* add new examples to the documentation
* minor bugfix when a column is not present
* minor bugfix to ensure unit conversion
* fix for #391
* exclude .py examples, use only the nootbooks for git tracking
* run documentation examples as tests + build the documentation as test
* Make sure the meta columns are kept if not metadata is available (solves #392)
* add groups to the pyproject so a poetry-documentation env can be used
* explicit provide template
* fix error in the gapfill test
* fixes sphinx warnings
* pass spell/grammer check
* pass spell/grammer check
* pass spell/grammer check
* spell and grammer check
* spell and grammer checks
* fix titles
* add titan in seperate group
* remove ipy checkpoints
* update intro wrt titanlib installation
* remove old examples that ar not relevant anymore
* update version and fixed documentation reference
* update version to beta 1.2
* avoid using the requirements file, now directly using poetry in documentation group
* gee map is always returned see codereview
* the old examples are removed so no need to scan this folder
* remove ipy checkpoints
Multiple methods rely on the 'lat' and 'lon' column. Like in the __repr__of the dataset:
So make sure these columns are always in the metadf attribute but filled with Nan if data is unknown.
Traceback (most recent call last):
File ~/anaconda3/envs/metobs_dev/lib/python3.9/site-packages/pandas/core/indexes/base.py:3790 in get_loc
return self._engine.get_loc(casted_key)
File index.pyx:152 in pandas._libs.index.IndexEngine.get_loc
File index.pyx:181 in pandas._libs.index.IndexEngine.get_loc
File pandas/_libs/hashtable_class_helper.pxi:7080 in pandas._libs.hashtable.PyObjectHashTable.get_item
File pandas/_libs/hashtable_class_helper.pxi:7088 in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'lat'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File ~/anaconda3/envs/metobs_dev/lib/python3.9/site-packages/spyder_kernels/py3compat.py:356 in compat_exec
exec(code, globals, locals)
File ~/Documents/VLINDER_github/MetObs_toolkit/development/developscript.py:50
dataset.show()
File ~/Documents/VLINDER_github/MetObs_toolkit/metobs_toolkit/dataset.py:303 in show
print_dataset_info(self, show_all_settings)
File ~/Documents/VLINDER_github/MetObs_toolkit/metobs_toolkit/printing.py:30 in print_dataset_info
print(dataset)
File ~/Documents/VLINDER_github/MetObs_toolkit/metobs_toolkit/dataset.py:152 in str
if ((not self.metadf['lat'].isnull().all()) &
File ~/anaconda3/envs/metobs_dev/lib/python3.9/site-packages/pandas/core/frame.py:3896 in getitem
indexer = self.columns.get_loc(key)
File ~/anaconda3/envs/metobs_dev/lib/python3.9/site-packages/pandas/core/indexes/base.py:3797 in get_loc
raise KeyError(key) from err
KeyError: 'lat'
The text was updated successfully, but these errors were encountered: