a64224316790548d4ff6ba4b98601eaed7ecff4c,src/pudl/convert/datapkg_to_sqlite.py,,main,#,135
Before Change
if args.clobber is False:
raise FileExistsError(
f"Output directory {out_path} exists and clobber is False.")
shutil.rmtree(out_path)
merge_datapkgs(dps, out_path, clobber=args.clobber)
if args.load_sqlite is True:
After Change
dps.append(datapackage.DataPackage(descriptor=path))
logger.info("Merging datapackages.")
with tempfile.TemporaryDirectory() as tmpdir:
out_path = pathlib.Path(tmpdir)
merge_datapkgs(dps, out_path, clobber=args.clobber)
logger.info("Loading merged datapackage into an SQLite database.")
datapkg_to_sqlite(pudl_settings["pudl_db"], out_path, clobber=args.clobber)
logger.info("Success! You can connect to the PUDL DB at this URL:")
logger.info(f"{pudl_settings["pudl_db"]}")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: catalyst-cooperative/pudl
Commit Name: a64224316790548d4ff6ba4b98601eaed7ecff4c
Time: 2020-08-06
Author: zane.selvans@catalyst.coop
File Name: src/pudl/convert/datapkg_to_sqlite.py
Class Name:
Method Name: main
Project Name: stanfordnlp/stanza
Commit Name: f0b0b42114a6dcd045b2b69f0a33c0978266c6fe
Time: 2020-07-28
Author: horatio@gmail.com
File Name: tests/test_installation.py
Class Name:
Method Name: test_download_corenlp_models
Project Name: sentinel-hub/eo-learn
Commit Name: c8c4a33e702915fa5c218b0701303e69880c6e3f
Time: 2018-08-02
Author: tomi.slijepcevic@gmail.com
File Name: core/eolearn/tests/test_eoexecutor.py
Class Name: TestEOExecutor
Method Name: test_execution_logs