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
]