Re: [arts-users] writeOut/readIn error

2020-01-15 Thread Rita Kajtar
Thank you for helping out, Oliver!


Best wishes,
Rita

On Wed, 15 Jan 2020, 07:58 Oliver Lemke, 
wrote:

> Hi Rita,
>
> First of all thank you very much for including a working test case. :-)
>
> There is indeed a bug in the ReadXML routine for the CovarianceMatrix.
> Instead of overwriting the workspace variable with the contents from the
> file, it was appending the blocks to the existing covmat_sx, ending up with
> 6 blocks after reading instead of 3.
>
> I will commit a fix soon.
>
> As a workaround in your version, you can delete the covmat_sx WSV before
> reading it:
>
> WriteXML( "ascii", covmat_sx, "covmat_sx1.xml")
> Delete(covmat_sx)
> ReadXML( covmat_sx, "covmat_sx1.xml")
>
> Thanks a lot for reporting this.
>
> Cheers,
> Oliver
>
>
> > On 14. Jan 2020, at 21:17, Rita Kajtar  wrote:
> >
> > Hello!
> >
> >
> > In one of my tests with TestOEM.arts if I add:
> >
> > WriteXML( "ascii", covmat_sx, "covmat_sx1.xml")
> > ReadXML( covmat_sx, "covmat_sx1.xml")
> >
> > right after the retrieval quantities definition, but before
> retrievalDefClose (file attached) in TestOEM.arts, I get the message
> included below.
> > I have also tried considering a binary format instead of ascii and I get
> the same error message.
> >
> > Is it possible to have a bug in the Write/Read methods?
> >
> > 
> >
> >
> > Best regards,
> > Rita Kajtar
> > ___
> > arts_users.mi mailing list
> > arts_users.mi@lists.uni-hamburg.de
> > https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi
>
>
___
arts_users.mi mailing list
arts_users.mi@lists.uni-hamburg.de
https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi


Re: [arts-users] writeOut/readIn error

2020-01-14 Thread Oliver Lemke
Hi Rita,

First of all thank you very much for including a working test case. :-)

There is indeed a bug in the ReadXML routine for the CovarianceMatrix. Instead 
of overwriting the workspace variable with the contents from the file, it was 
appending the blocks to the existing covmat_sx, ending up with 6 blocks after 
reading instead of 3.

I will commit a fix soon.

As a workaround in your version, you can delete the covmat_sx WSV before 
reading it:

WriteXML( "ascii", covmat_sx, "covmat_sx1.xml")
Delete(covmat_sx)
ReadXML( covmat_sx, "covmat_sx1.xml")

Thanks a lot for reporting this.

Cheers,
Oliver


> On 14. Jan 2020, at 21:17, Rita Kajtar  wrote:
> 
> Hello! 
> 
> 
> In one of my tests with TestOEM.arts if I add: 
> 
> WriteXML( "ascii", covmat_sx, "covmat_sx1.xml")
> ReadXML( covmat_sx, "covmat_sx1.xml") 
> 
> right after the retrieval quantities definition, but before retrievalDefClose 
> (file attached) in TestOEM.arts, I get the message included below. 
> I have also tried considering a binary format instead of ascii and I get the 
> same error message. 
> 
> Is it possible to have a bug in the Write/Read methods?
> 
> 
> 
> 
> Best regards, 
> Rita Kajtar 
> ___
> arts_users.mi mailing list
> arts_users.mi@lists.uni-hamburg.de
> https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi

___
arts_users.mi mailing list
arts_users.mi@lists.uni-hamburg.de
https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi


[arts-users] writeOut/readIn error

2020-01-14 Thread Rita Kajtar
Hello!


In one of my tests with TestOEM.arts if I add:

WriteXML( "ascii", covmat_sx, "covmat_sx1.xml")
ReadXML( covmat_sx, "covmat_sx1.xml")

right after the retrieval quantities definition, but before
retrievalDefClose (file attached) in TestOEM.arts, I get the message
included below.
I have also tried considering a binary format instead of ascii and I get
the same error message.

Is it possible to have a bug in the Write/Read methods?

[image: Screen Shot 2020-01-14 at 9.02.03 PM.png]


Best regards,
Rita Kajtar


TestOEM.arts
Description: Binary data
___
arts_users.mi mailing list
arts_users.mi@lists.uni-hamburg.de
https://mailman.rrz.uni-hamburg.de/mailman/listinfo/arts_users.mi