From d2673b2bf55f287cca66903bf2e508e6f3eaf693 Mon Sep 17 00:00:00 2001 From: Peter Remmen Date: Wed, 6 Feb 2019 17:09:46 +0100 Subject: [PATCH] treat 360 as 0 degree --- teaser/data/output/modelicatemplate/conversion | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teaser/data/output/modelicatemplate/conversion b/teaser/data/output/modelicatemplate/conversion index 32da1169b..7d80cc6fd 100644 --- a/teaser/data/output/modelicatemplate/conversion +++ b/teaser/data/output/modelicatemplate/conversion @@ -23,6 +23,8 @@ return_value.append(deg_to_rad(-180.0+element)) elif element == 0: return_value.append(deg_to_rad(180.0)) + elif element == 360: + return_value.append(deg_to_rad(180.0)) elif element == -1: return_value.append(deg_to_rad(0.0)) elif element == -2: @@ -32,6 +34,8 @@ return_value = deg_to_rad(-180.0+value) elif value == 0: return_value = deg_to_rad(180.0) + elif value == 360: + return_value = deg_to_rad(180.0) elif value == -1: return_value = deg_to_rad(0.0) elif value == -2: