ec95ab798e5dda588dd59299ebbc723187e423ce,devtools/create_test_data.py,,main,#,85

Before Change


        for yr in yrs_by_src[src]:
            src_dir = datastore.path(src, year=yr, file=False,
                                     pudl_settings=pudl_settings)
            tmp_dir = os.path.join(args["data_dir"], "tmp")

            if src == "ferc1":
                files_to_move = [f"{pc.ferc1_tbl2dbf[f]}.DBF" for f in

After Change


                logger.warning(f"Invalid {src} years ignored: {bad_yrs}.")

    logger.info(f"out_dir: {args.out_dir}")
    pudl_settings = pudl.workspace.setup.derive_paths(
        pudl_in=pudl.workspace.setup.get_defaults()["pudl_in"],
        pudl_out=pudl.workspace.setup.get_defaults()["pudl_in"])

    for src in args.sources:
        for yr in yrs_by_src[src]:
            src_dir = datastore.path(src, pudl_settings["data_dir"],
                                     year=yr, file=False)
            tmp_dir = os.path.join(args.out_dir, "tmp")

            if src == "ferc1":
                files_to_move = [f"{pc.ferc1_tbl2dbf[f]}.DBF" for f in
                                 pc.ferc1_default_tables]
                files_to_move = files_to_move + ["F1_PUB.DBC", "F1_32.FPT"]
            elif src == "epacems":
                files_to_move = [
                    datastore.path("epacems", pudl_settings["data_dir"],
                                   year=yr, state=st, month=mo)
                    for mo in range(1, 13) for st in args.states
                ]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: catalyst-cooperative/pudl
Commit Name: ec95ab798e5dda588dd59299ebbc723187e423ce
Time: 2019-10-04
Author: zane.selvans@catalyst.coop
File Name: devtools/create_test_data.py
Class Name:
Method Name: main


Project Name: catalyst-cooperative/pudl
Commit Name: 934c745a91d6a4ae15e686da13aaf7441c4dda30
Time: 2019-08-15
Author: zane.selvans@catalyst.coop
File Name: src/pudl/convert/epacems_to_parquet.py
Class Name:
Method Name: parse_command_line


Project Name: catalyst-cooperative/pudl
Commit Name: ed374e43783ff6cb58850aef22e4fa447ebbde61
Time: 2019-08-20
Author: cgosnell@catalyst.coop
File Name: src/pudl/convert/epacems_to_parquet.py
Class Name:
Method Name: main