make diff of time series to compare test productions+AliasDataFrame - #2014
make diff of time series to compare test productions+AliasDataFrame#2014miranov25 wants to merge 1 commit into
Conversation
|
REQUEST FOR PRODUCTION RELEASES: This will add The following labels are available |
✨ Add `AliasDataFrame Utilities for On-Demand EvaluationThis PR adds support for alias-based derived column computation, as used for example in TPC distortion error parameterization. It includes: ✅ Key Features
🧪 Example UsageThe function below demonstrates how derived error estimates and quality flags can be defined in terms of other DataFrame columns and aliases: def makeErrParamAlias(adf):
adf.df["Beta2"] = np.minimum(50 / adf.df["dEdxTPC"], 1.0).astype(np.float16)
adf.add_alias("errz0a0", "0.35*sqrt(1+(mP4**2)/Beta2)/(nClsTPC/150.)**1.5", dtype=np.float16)
adf.add_alias("errz0b0", "0.006*sqrt(1+(mP4**2)/Beta2)/(nClsTPC/150.)**1.5", dtype=np.float16)
adf.add_alias("errz0b1", "0.0015*sqrt(0.25+(mP4**2)/Beta2)/(nClsTPC/150.)**1.5", dtype=np.float16)
adf.add_alias("erry0c1", "0.5*sqrt(0.25+(mP4**2)/Beta2)/(nClsTPC/150.)**2.5/150**2", dtype=np.float16)
adf.add_alias("cutB6", "((abs(dz0_b0/errz0b0) > 6) * 1) + ((abs(dz0_b1/errz0b1) > 6) * 2) + ((abs(dy0_b0/errz0b0) > 6) * 4) + ((abs(dy0_b1/errz0b1) > 6) * 8)", dtype=np.uint8)
adf.add_alias("cutC6", "((abs(dy0_c1/erry0c1) > 6) * 1) + ((abs(dy0_c0/erry0c1) > 6) * 2)", dtype=np.uint8)
adf.add_alias("cutA6", "((abs(dy0_a0/errz0a0) > 6) * 1) + ((abs(dz0_a0/errz0a0) > 6) * 2)", dtype=np.uint8)
adf.add_alias("cutT", "((cutB6 + cutC6 + cutA6) > 0)", dtype=np.uint8)
return adf📊 Alias Dependency Graph |
🧾 Output Storage for
|
🔄 Update Changes Summary✅ Constants Support
🧠 Smart Dependency Handling
💾 Parquet and ROOT I/O Support
🧪 Unit Tests
|
|
Extended commit description:
|
Add ALIEN_JDL variables for o2-tpc-time-series-workflow configuration: ALIEN_JDL_TPCTIMESERIESMINMOMENTUM → TPCTIMESERIES_MIN_MOMENTUM ALIEN_JDL_TPCTIMESERIESMINCLUSTER → TPCTIMESERIES_MIN_CLUSTER ALIEN_JDL_TPCTIMESERIESMAXTGL → TPCTIMESERIES_MAX_TGL ALIEN_JDL_TPCTIMESERIESMULTMAX → TPCTIMESERIES_MULT_MAX Companion to AliceO2 calib-workflow.sh change.


Adding -
AliasDataFrameis a small utility that extendspandas.DataFramefunctionality by enabling:uproot+PyROOT)