Menu

#340 Using index vectors on table headlines impossible

v1.1.x
fixed
None
v1.1.1
Bug Fix
2018-11-11
2018-06-04
Erik Hänel
No

If one tries to use index vectors to read table headlines like data(#, index(:,1)), NumeRe will throw an error stating that # is not a valid numeric character.

Analysis:
The issue results directly from the usage of the index vector index(:,1): in this case the needed recursion will return the result enclosed with extra whitespaces. To solve this issue, simply add StripSpaces() after the recursion.

Implementation:
The fix was implemented as proposed by the analysis. Implementation tests were passed successfully.

Documentation:
The fix was documented in the changes log. Further documentation not needed.

Tests:
This fix was tested in the automatic SW tests. No deviations detected.

Discussion

  • Erik Hänel

    Erik Hänel - 2018-06-10
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2018-07-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
     If one tries to use index vectors to read table headlines like `data(#, index(:,1))`, NumeRe will throw an error stating that `#` is not a valid numeric character.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2018-07-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,7 @@
     If one tries to use index vectors to read table headlines like `data(#, index(:,1))`, NumeRe will throw an error stating that `#` is not a valid numeric character.
    
     **Analysis:**
    +The issue results directly from the usage of the index vector `index(:,1)`: in this case the needed recursion will return the result enclosed with extra whitespaces. To solve this issue, simply add `StripSpaces()` after the recursion.
    
     **Implementation:**
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2018-07-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,9 @@
     The issue results directly from the usage of the index vector `index(:,1)`: in this case the needed recursion will return the result enclosed with extra whitespaces. To solve this issue, simply add `StripSpaces()` after the recursion.
    
     **Implementation:**
    +The fix was implemented as proposed by the analysis. Implementation tests were passed successfully.
    
     **Documentation:**
    +The fix was documented in the changes log. Further documentation not needed.
    
     **Tests:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2018-11-11
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,3 +10,4 @@
     The fix was documented in the changes log. Further documentation not needed.
    
     **Tests:**
    +This fix was tested in the automatic SW tests. No deviations detected.
    
    • status: testing --> fixed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB