Closed lucasrodes closed 3 weeks ago
Quick links (staging server): Site | Admin | Wizard |
---|
Login: ssh owid@staging-site-ds-attribute-tables
Edited: 2024-06-11 10:35:07 UTC Execution time: 3.61 seconds
Unsure where the unit-test errors are coming from. It looks as if method named tables
is not allowed?
ERROR tests/apps/wizard/utils/test_env.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/backport/datasync/test_data_metadata.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/data_helpers/test_geo.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_command.py
ERROR tests/test_converters.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_datadiff.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_etl.py
ERROR tests/test_grapher_helpers.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_grapher_model.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_helpers.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_metadata_schemas.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_prune.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_snapshot.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_steps.py - AttributeError: 'function' object has no attribute 'Table'
ERROR tests/test_version_tracker.py - AttributeError: 'function' object has no attribute 'Table'
You can actually write
ds_grapher = create_dataset(
dest_dir,
tables=list(ds_garden),
check_variables_metadata=True,
default_metadata=ds_garden.metadata,
)
which could be enough.
@Marigold right! that makes sense ー i'll close this issue for now then.
When working with a dataset with multiple tables, we sometimes need to load all of them. This is specially true for Grapher steps when we just want to push propagate all tables coming from garden to Grapher.
The idea would be that, instead of doing:
one can simply write