Comments (2)
Output from the original error I got from using primap2 in a different project
Traceback (most recent call last):
File "UNFCCC_GHG_data/UNFCCC_CRF_reader/test_read_UNFCCC_CRF_for_year.py", line 23, in <module>
read_year_to_test_specs(
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/UNFCCC_GHG_data/UNFCCC_CRF_reader/UNFCCC_CRF_reader_devel.py", line 106, in read_year_to_test_specs
ds_table_pm2 = pm2.pm2io.from_interchange_format(ds_table_if)
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/primap2/pm2io/_interchange_format.py", line 390, in from_interchange_format
data_xr.pr.ensure_valid()
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/primap2/_data_format.py", line 101, in ensure_valid
ensure_valid_data_variables(self._ds)
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/primap2/_data_format.py", line 339, in ensure_valid_data_variables
ensure_gwp_context_valid(str(key), da)
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/primap2/_data_format.py", line 393, in ensure_gwp_context_valid
with ureg.context(gwp_context):
File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/pint/facets/context/registry.py", line 301, in context
self.enable_contexts(*names, **kwargs)
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/openscm_units/_unit_registry.py", line 366, in enable_contexts
self._add_contexts()
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/openscm_units/_unit_registry.py", line 453, in _add_contexts
self._add_metric_conversions()
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/openscm_units/_unit_registry.py", line 464, in _add_metric_conversions
self._add_metric_conversions_from_df(metric_conversions)
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/openscm_units/_unit_registry.py", line 471, in _add_metric_conversions_from_df
for label, val in metric_conversion.iteritems():
File "/storage/data/data/PRIMAP/primap_2.0/datasets/UNFCCC_non-AnnexI_data/venv/lib/python3.8/site-packages/pandas/core/generic.py", line 5989, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'Series' object has no attribute 'iteritems'
from primap2.
Shows how important #130 would be…
from primap2.
Related Issues (20)
- QA: test against development versions of upstream libraries
- improved nan treatment on summing HOT 1
- sparse data HOT 15
- scmdata compatibility
- Add convert_to_gwp() to a dataset
- Order of attrs fields not stable in interchange format HOT 2
- pint and np.nan again
- fully type everything and add py.typed marker HOT 1
- CSG: next steps HOT 1
- Unit handling in xarray fails for Python 3.12
- Setup allows installation of unsupported Python version 3.12
- logging verbosity
- CSV reading with non-comma separators HOT 3
- Abandon `sec_cats`
- extrapolation and other numerical / unary operations
- Support filtering for `entity` in Dataset.pr.loc
- Fix docs for aggregation
- Generalize `pr.set` HOT 1
- Harmonize parameter naming for selections/filters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primap2.