summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2025-04-23 15:12:20 +0530
committerSunil Shetye2025-04-23 15:12:20 +0530
commite172e5fe73811b7b54b8c368d83cd7cd08078435 (patch)
tree53ed2cdd15f31f9e3cff2a40a829c567e9f457e2
parent3ed1f467aadbe2608186204334b24cd0912cb72a (diff)
downloadCommon-Interface-Project-e172e5fe73811b7b54b8c368d83cd7cd08078435.tar.gz
Common-Interface-Project-e172e5fe73811b7b54b8c368d83cd7cd08078435.tar.bz2
Common-Interface-Project-e172e5fe73811b7b54b8c368d83cd7cd08078435.zip
add an else block to handle the empty array case
-rw-r--r--blocks/.dockerignore5
-rw-r--r--blocks/Dockerfile2
-rw-r--r--blocks/simulationAPI/helpers/scilab_manager.py2
3 files changed, 7 insertions, 2 deletions
diff --git a/blocks/.dockerignore b/blocks/.dockerignore
index 8fae3b6f..de351a43 100644
--- a/blocks/.dockerignore
+++ b/blocks/.dockerignore
@@ -17,9 +17,12 @@ tags
.srcflake8
.xcosblocks.txt
scilab-log-*.txt
-U*.sci
+*.dat
+*.sce
+*.sci
*.xcos
*.xml
+*.xsl
xcosblocks.py
Xcos/xcosblocks.py
blocks/xcosblocks/xcosblocks.py
diff --git a/blocks/Dockerfile b/blocks/Dockerfile
index 85027973..f8bfc6ae 100644
--- a/blocks/Dockerfile
+++ b/blocks/Dockerfile
@@ -105,7 +105,7 @@ FROM base AS build-xcos
RUN apt-get update -qq && \
apt-get install -qq --no-install-recommends gawk python3-pip python3-venv wget xz-utils
-ARG NODE_VERSION=v18.20.2
+ARG NODE_VERSION=v20.19.0
ARG NODE=node-${NODE_VERSION}-linux-x64
WORKDIR ${HOME}
RUN wget -q --no-hsts https://nodejs.org/download/release/${NODE_VERSION}/${NODE}.tar.xz && \
diff --git a/blocks/simulationAPI/helpers/scilab_manager.py b/blocks/simulationAPI/helpers/scilab_manager.py
index 1835e85b..f75aa38c 100644
--- a/blocks/simulationAPI/helpers/scilab_manager.py
+++ b/blocks/simulationAPI/helpers/scilab_manager.py
@@ -966,6 +966,8 @@ def list_variables(filename):
command += "else;"
command += "__V9=__V9+sci2exp(evstr(__V18));"
command += "end;"
+ command += "else;"
+ command += "__V9=__V9+'\"\"'+sci2exp(evstr(__V18))+'\"\"';"
command += "end;"
command += "__V9=__V9+'}';"
command += "if __V8<size(__V5,2) then;"