Skip to content

Equations with more than two lines result in bad comments #174

@ToddFincannon

Description

@ToddFincannon

Long Vensim equations extending over multiple lines may be turned into a bad comment. For instance,

This Year Change in Process Emissions by Policy and Industry[water and waste 36T39,indst methane destruction\
		,Pollutant]=
	Industry Process Emissions Policy to Pollutant Mappings[indst methane destruction,Pollutant\
		]
	*
	(
	  -SUM(Process Emissions Abated due to Carbon Tax by Marginal Cost[waste management methane destruction\
		,Marginal Abatement Cost
!])

	  - (
	      SUM(PERAC Mass CO2e Avoidable by Marginal Cost[waste management methane destruction\
		,Marginal Abatement Cost!])
	      - SUM(Process Emissions Abated due to Carbon Tax by Marginal Cost[waste management methane destruction\
		,Marginal Abatement Cost
!])
	    )
	    * Fraction of Methane Destruction Opportunities Achieved This Year[water and waste 36T39\
		]
	) ~~|

becomes:

// This Year Change in Process Emissions by Policy and Industry[water and waste 36T39,indst methane destruction,Pollutant] = Industry Process Emissions Policy to Pollutant Mappings[indst methane destruction,Pollutant]*(-SUM(Process Emissions Abated due to Carbon Tax by Marginal Cost[waste management methane destruction,Marginal Abatement Cost!])-(SUM(PERAC Mass CO2e Avoidable by Marginal Cost[waste management methane destruction,Marginal Abatement Cost!])-SUM(Process Emissions Abated due to Carbon Tax by Marginal Cost[waste management methane destruction,Marginal Abatement Cost
!]))*Fraction of Methane Destruction Opportunities Achieved This Year[water and waste 36T39])

Note the join fails to include the last line of text.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions