OcelotProject / Ocelot

Ocelot is open-source linking for life cycle assessment. See https://ocelot.space/ for more information.
Other
26 stars 7 forks source link

Not all "ref(UUID)" variables are replaced in formulas #95

Closed PascalLesage closed 8 years ago

PascalLesage commented 8 years ago

Ocelot replaces Ref(UUID)'s in datasets with new variable names of the type 'ref_replacement_UUID'.

Upon inspection, it would seem not all cases are replaced.

Example: dataset id '09148d48-e779-4d8b-9193-3b1863d17997' has a formula for 'ref_replacement_92a523a957d64957bb491633c755ef52' that reads:
-1 * (ref_replacement_e925280170694ef4af234857674984d4+ ref('bc86b665-a132-48d0-9dd4-93b0db990a5d')+ ref('4b92fc91-e782-42f7-9a7d-b8d7daa3830f')+ ref('a40d163f-587b-418e-b155-e896129607f3')+ ref('0b24d946-65b2-45de-a182-949bc7cafcd4')+ ref('9fc750cf-c31d-45f1-88bd-eaa94349468d')
Only the first Ref(UUID) is replaced.