ebd339fe6f290551bf9424a06ee8c44c43b6d69c,src/pudl/extract/ferc714.py,,get_ferc714,#Any#,47

Before Change


def get_ferc714(pudl_settings):
    If necessary, download a fresh copy of the FERC 714 data.
    ferc714_url = "https://www.ferc.gov/sites/default/files/2020-06/form714-database-June-2020.zip"
    ferc714_dir = pathlib.Path(pudl_settings["data_dir"]) / "local/ferc714/"
    ferc714_dir.mkdir(parents=True, exist_ok=True)
    ferc714_zipfile = ferc714_dir / "ferc714.zip"
    if not ferc714_zipfile.is_file():

After Change


def get_ferc714(pudl_settings):
    If necessary, download a fresh copy of the FERC 714 data.

    sandbox = pudl_settings.get("sandbox", False)
    ds = pudl.workspace.datastore.Datastore(
        Path(pudl_settings["pudl_in"]),
        sandbox=sandbox)
    resources = ds.get_resources("ferc714")

    for r in resources:
        if r["name"] == "form714.zip":
            return Path(r["path"])


def _get_zpath(ferc714_table, pudl_settings):
    
    Given a table name and pudl_settings, return a Path to the corresponding file.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: catalyst-cooperative/pudl
Commit Name: ebd339fe6f290551bf9424a06ee8c44c43b6d69c
Time: 2020-08-21
Author: mailbox@pablovirgo.com
File Name: src/pudl/extract/ferc714.py
Class Name:
Method Name: get_ferc714


Project Name: ilastik/ilastik
Commit Name: 67d43c40d0cdbbe42138412851e233c8cf402b08
Time: 2019-07-23
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionSerializer.py
Class Name: DataSelectionSerializer
Method Name: importStackAsLocalDataset


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 8c18cecf15a8935d8bf712edcc91ac05daf2176e
Time: 2020-06-16
Author: tmatsuo@google.com
File Name: appengine/standard/noxfile-template.py
Class Name:
Method Name: