Re: Unlimited dimension troubles

From: Jesper Larsen <jlar_at_nyahnyahspammersnyahnyah>
Date: Wed, 4 Feb 2009 11:57:40 +0100

Hi David,

Thanks for your answer and attachment. I have done as you suggest and do
my own bookkeeping of the number of elements in the unlimited dimension.
That works fine.

- Jesper

On Mon, 2009-02-02 at 19:13 +0100, David Brown wrote:
> You are correct that PyNIO currently does not give the updated value
> of the unlimited dimension length
> until the file is closed and reopened. This is probably an oversight
> that can be corrected in our next release.
> You can indeed write a new element of an unlimited dimension without
> knowing how many exist currently.
> If you skip over any elements that are currently undefined then those
> elements will be filled with missing values.
> On the other hand, if you write to an element that already exists
> you will overwrite the existing data.
> So for now if you want to keep the file open you would need to keep
> your own counter of how many elements
> currently exist along the unlimited dimension.
> I am attaching the example referred to in the message you cite. It or
> a slight variation will be part of PyNIO's example set in the
> next release.
> -dave

pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Feb 04 2009 - 03:57:40 MST

This archive was generated by hypermail 2.2.0 : Tue Mar 03 2009 - 09:55:28 MST