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():
        logger.warning("Downloading a fresh copy of the FERC 714 data (~50MB).")
        pudl.helpers.download_zip_url(ferc714_url, ferc714_zipfile)
    return ferc714_zipfile

After Change


    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: 4

Non-data size: 6

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: AlexEMG/DeepLabCut
Commit Name: 812f374c34087af0aa90ac3cd2b37158b1ad0372
Time: 2019-07-02
Author: amathis@fas.harvard.edu
File Name: deeplabcut/post_processing/analyze_skeleton.py
Class Name:
Method Name: analyzeskeleton


Project Name: catalyst-cooperative/pudl
Commit Name: f967bd87424bbc50f475d5959994a5743ae2af0e
Time: 2019-12-28
Author: zane.selvans@catalyst.coop
File Name: src/pudl/convert/epacems_to_parquet.py
Class Name:
Method Name: epacems_to_parquet


Project Name: deepmipt/DeepPavlov
Commit Name: 80f87868e6ffad6b2a7f6c4e9933ff14bb8abb49
Time: 2018-04-27
Author: alitinsky@gmail.com
File Name: deeppavlov/core/data/utils.py
Class Name:
Method Name: download_decompress