You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this will be a bit of a weird transformer because one parameter will need to effect outcomes in many places across the transform. There will be a normal looking transform TransformParams & transform function & method that actually does the assignment of a new column. But this transform param will also need to be access in the methods/functions that muck with the table metadata and calculations.
The text was updated successfully, but these errors were encountered:
Okay in service of #3404 i learned that the calculation components are not always getting the dimension tags when we have applied them uniformly across all tables.
A lil example:
frompudl.output.ferc1importNodeIdfrompudl.etlimportdefs_core_ferc1_xbrl__calculation_components=defs.load_asset_value("_core_ferc1_xbrl__calculation_components")
calc_idx= [cforcinlist(NodeId._fields) ifc!="table_name"] # remove tbl name bc longparent_idx= [f"{c}_parent"forcincalc_idx]
_core_ferc1_xbrl__calculation_components[_core_ferc1_xbrl__calculation_components.xbrl_factoid_parent=="nuclear_fuel_net"][
parent_idx+calc_idx
]
I believe this dimensions are being dropped and/or not being assigned in add_calculation_corrections. But in general I've had a hard time seeing where we've added these uniform dimensions across the board and i think fixing this _correction problem will be much easier to do with a parameterized transform for this adding of uniform dimension columns.
Tasks
this will be a bit of a weird transformer because one parameter will need to effect outcomes in many places across the transform. There will be a normal looking transform
TransformParams
& transform function & method that actually does the assignment of a new column. But this transform param will also need to be access in the methods/functions that muck with the table metadata and calculations.The text was updated successfully, but these errors were encountered: