Skip to content

Commit 1fa2388

Browse files
authored
Merge pull request #4466 from lbl-srg/issue4456_annotationText_v2_bash
Added verification that no old annotation is present
2 parents c8c3f3c + dedd770 commit 1fa2388

File tree

336 files changed

+25
-2840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+25
-2840
lines changed

.github/workflows/formatting.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ jobs:
4949
done;
5050
test -z "${ff}"
5151
52+
- name: "Test for old Text annotations (see https://github.com/lbl-srg/modelica-buildings/issues/4456). If it fails, correct library with sed command below."
53+
run : |
54+
for FILE in `find . -name '*.mo'`; do
55+
sed -i -z -E \
56+
-e 's/(Text[^)]*)(lineThickness[^,)]*[,]*[[:space:]]*)([^)]*)\)/\1\3)/g' \
57+
-e 's/(Text[^)]*)(fillColor[^})]*[},]*[[:space:]]*)([^)]*)\)/\1\3)/g' \
58+
-e 's/(Text[^)]*)(fillPattern[^,)]*[,]*[[:space:]]*)([^)]*)\)/\1\3)/g' \
59+
-e 's/(Text[^)]*)(pattern[^,)]*[,]*[[:space:]]*)([^)]*)\)/\1\3)/g' \
60+
-e 's/(Text\([^)]*),[[:space:]]*\)/\1)/g' \
61+
"$FILE"
62+
done;
63+
git diff --exit-code --quiet .
64+
5265
- name: "Test html syntax"
5366
run : ../bin/runUnitTests.py --validate-html-only
5467

Buildings/Air/Systems/SingleZone/VAV/Examples/OptimalStart/BaseClasses/ZoneWithAHUConventional.mo

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ equation
120120
Text(
121121
extent={{-151,147},{149,107}},
122122
textColor={0,0,255},
123-
fillPattern=FillPattern.HorizontalCylinder,
124-
fillColor={0,127,255},
125123
textString="%name")}),
126124
Diagram(coordinateSystem(
127125
preserveAspectRatio=false)),

Buildings/Air/Systems/SingleZone/VAV/Examples/OptimalStart/BaseClasses/ZoneWithAHUG36.mo

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ equation
222222
Text(
223223
extent={{-151,147},{149,107}},
224224
textColor={0,0,255},
225-
fillPattern=FillPattern.HorizontalCylinder,
226-
fillColor={0,127,255},
227225
textString="%name")}),
228226
Diagram(coordinateSystem(
229227
preserveAspectRatio=false, extent={{-160,-160},{160,160}})),

Buildings/Air/Systems/SingleZone/VAV/Examples/OptimalStart/ConventionalSpring.mo

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ equation
123123
Text(
124124
extent={{40,-2},{92,-20}},
125125
textColor={238,46,47},
126-
fillColor={229,229,229},
127-
fillPattern=FillPattern.Solid,
128126
textString="System with optimal start"),
129127
Rectangle(
130128
extent={{-108,-28},{106,-94}},
@@ -135,8 +133,6 @@ equation
135133
Text(
136134
extent={{40,-80},{98,-96}},
137135
textColor={238,46,47},
138-
fillColor={229,229,229},
139-
fillPattern=FillPattern.Solid,
140136
textString="System without optimal start")}),
141137
experiment(
142138
StartTime=6393600,

Buildings/Air/Systems/SingleZone/VAV/Examples/OptimalStart/Guideline36Spring.mo

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ equation
9292
Text(
9393
extent={{0,-76},{54,-102}},
9494
textColor={238,46,47},
95-
fillColor={229,229,229},
96-
fillPattern=FillPattern.Solid,
9795
textString="System without optimal start"),
9896
Rectangle(
9997
extent={{-70,96},{72,8}},
@@ -104,8 +102,6 @@ equation
104102
Text(
105103
extent={{0,104},{48,80}},
106104
textColor={238,46,47},
107-
fillColor={229,229,229},
108-
fillPattern=FillPattern.Solid,
109105
textString="System with optimal start")}),
110106
experiment(
111107
StartTime=6393600,

Buildings/Airflow/Multizone/EffectiveAirLeakageArea.mo

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,11 @@ model EffectiveAirLeakageArea "Effective air leakage area"
3333
Text(
3434
extent={{-104,92},{-20,54}},
3535
textColor={0,0,255},
36-
pattern=LinePattern.None,
37-
fillColor={255,255,255},
38-
fillPattern=FillPattern.Solid,
3936
textString=
4037
"L=%L"),
4138
Text(
4239
extent={{22,94},{98,56}},
4340
textColor={0,0,255},
44-
pattern=LinePattern.None,
45-
fillColor={255,255,255},
46-
fillPattern=FillPattern.Solid,
4741
textString=
4842
"m=%m"),
4943
Rectangle(

Buildings/Airflow/Multizone/MediumColumn.mo

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ equation
113113
Text(
114114
extent={{36,26},{88,-10}},
115115
textColor={0,0,127},
116-
fillColor={255,0,0},
117-
fillPattern=FillPattern.Solid,
118116
textString="h=%h"),
119117
Rectangle(
120118
extent={{-16,80},{16,-80}},

Buildings/Airflow/Multizone/MediumColumnDynamic.mo

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ equation
108108
Text(
109109
extent={{42,26},{94,-10}},
110110
textColor={0,0,127},
111-
fillColor={255,0,0},
112-
fillPattern=FillPattern.Solid,
113111
textString="h=%h"),
114112
Text(
115113
extent={{-50.5,20.5},{50.5,-20.5}},

Buildings/Airflow/Multizone/Orifice.mo

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ model Orifice "Orifice"
3434
Text(
3535
extent={{24,-24},{96,-100}},
3636
textColor={0,0,255},
37-
fillColor={0,127,0},
38-
fillPattern=FillPattern.Solid,
3937
textString="A=%A")}),
4038
defaultComponentName="ori",
4139
Documentation(info="<html>

Buildings/Applications/DataCenters/ChillerCooled/Equipment/BaseClasses/PartialChillerWSE.mo

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,6 @@ equation
458458
Text(
459459
extent={{6,16},{16,8}},
460460
textColor={0,0,0},
461-
fillColor={255,255,255},
462-
fillPattern=FillPattern.Solid,
463461
textStyle={TextStyle.Bold},
464462
textString="T"),
465463
Line(points={{-90,60},{-76,60},{-76,40},{-72,40}}, color={28,108,200}),

0 commit comments

Comments
 (0)