Home Forums Bug Reports Dependent variables information in .dat files is not correct

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7056
    drahnoel
    Participant

      Hello,

      In the .dat file sometimes dependent variables are reported, where the variable actually does not depend on it. The file is thereby corrupted as reshaping of the data cannot work anymore.

      I created a minimal schematic to reproduce:

      Schematic to reproduce bug

      To check the dat file, following octave script can be used:

      [val, dep_n, dep_v] = loadQucsVariable(“test_bug.dat”, “VAR3”);

      causing an error message of:

      error: reshape: can’t reshape 10×1 array to 10×10 array

      Investigation of the header information of the .dat file reveils, that VAR3 is of size 10 but depends on VAR2 and VAR1. So either VAR3 should be of length 100 or it should only depend on VAR1.

      Interestingly, VAR4 is all good. VAR4 has length 10 and only depends on VAR2.

      QucsStudio Version 4.3.1

      Best Regards,

      Leonhard

      • This topic was modified 4 months, 4 weeks ago by maelh. Reason: Convert all remaining http links to https links
      #7057
      drahnoel
      Participant

        My file uploads were restricted for security reasons, I try again as archive

        Attachments:
        #7059
        drahnoel
        Participant

          I found, that Qucs 0.0.19 does not have the problem. The dat file for an equivalent schematic contains following lines:

          <Qucs Dataset 0.0.19>

          <indep VAR1 10>

          <indep VAR2 10>

          <dep VAR4 VAR2>

          <dep VAR3 VAR1>

           

          #7067
          QucsStudio
          Keymaster

            Yes, you’re right! Many thanks for the bug report. I will fix it.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.