Hi all,

... this is bugging me for some time now. It should be simple, I thought
but it apparently isn't.

Storable / nstore is not working with PDLs
PDL::IO::Storable is not working across plattforms

PDL::NetCDF seems to lack a simple store-my-deep-structure command.



Thanks for your help

Ingo

On 11/15/2013 10:18 AM, Ingo Schmid wrote:
> I think it just requires replacing get_datatype with type at line 137 of
> storable.pd.
>
> >From tested howbig on the output of type, and it looks ok
> Ingo
> On 11/15/2013 09:52 AM, Dima Kogan wrote:
>> Chris Marshall <[email protected]> writes:
>>
>>> I took a look at the PDL::IO::Storable code at it seems to
>>> encode the type of the pdl from $pdl->get_datatype which
>>> is a number.  As we now have a new data type, PDL_Indx,
>>> the old numbers are not the same as the new ones.
>>>
>>> Not sure how to fix but you may be able to correct the
>>> type information to allow restoring on non-binary compatible
>>> PDL versions.
>> I see. Not only did we get a new type, it's in the middle, so everything
>> past it was broken. I fixed this and pushed up the fix (and the tests).
>>
>> After the patch, we can read old files once again. And we can read new
>> files we save. And (in theory) we can read files saved on a machine with
>> a different endian-ness. I tested this last bit somewhat, but lacking
>> access to an actual big-endian box I couldn't test this fully. If
>> anybody has a big-endian machine running PDL, it'd be great if they
>> could add a corresponding test to t/storable.t
>>
>> Chris, can we make a point release with this patch? I consider this to
>> be a MAJOR problem, so I think it's justified.
>>
>> Thanks
>>
>> dima
>>
>>
>> _______________________________________________
>> PDL-porters mailing list
>> [email protected]
>> http://mailman.jach.hawaii.edu/mailman/listinfo/pdl-porters
>>
>
> _______________________________________________
> PDL-porters mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/pdl-porters
>


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to