numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
17 stars 5 forks source link

String indices in loops yield "empty expression" #182

Closed numeredev closed 4 months ago

numeredev commented 4 months ago

DESCRIPTION

Describe the bug If string indexing of table columns is used within loops, then an "empty expression" error is thrown.

To Reproduce Steps to reproduce the behavior:

  1. Create a table
  2. Assign headlines to the columns
  3. Try to assign values to those columns using string indices in loops
  4. See error
new tbl()
tbl(#, :) = {"COL1", "COL2"};
for (i = 1:10)
    tbl(i, "COL1") = i^2;
endfor

Expected behavior The string indices work as regular numerical indices

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

(Describe, what's the issue and which changes have to be made)

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST

numeredev commented 4 months ago

Seems to be already fixed by some other change. Error is reproducable in last release but not present anymore in current dev version.