SPF-OST / pytrnsys

Package that provides functionality to run and process, plot and report TRNSYS simulations
https://pytrnsys.readthedocs.io
GNU General Public License v3.0
11 stars 8 forks source link

Ddcks without header get pasted into final dck incorrectly #152

Open zuckerruebe opened 1 year ago

zuckerruebe commented 1 year ago

As a user, I want ddcks to be compiled into a deck file correctly, regardless of whether they contain a header or not. Consider the following ddck:

*************************************
**BEGIN recall.ddck
*************************************

EQUATIONS 1
:TIn = @temp(Side0In)

UNIT 1 TYPE 150
PARAMETERS 3
1
1
7
INPUTS 1
:TIn
**
7

EQUATIONS 2
:TOut = [1,1]
@temp(Side0Out) = :TOut

Removing the

*************************************
**BEGIN recall.ddck
*************************************

would lead to

EQUATIONS 1
:TIn = @temp(Side0In)

being duplicated in the final deck file for some reason.