output file error

Hello all,

I am encountering a formatting error when I output data to a file. This error
may not seem
like a big deal, but it is causing me problems so I thought I would post it.

What happens is that I would like the same number of spaces (in the example I
set this to be
one space) between the data columns. Yet when I run the example code (see
below), I get an
added space for values that are negative 0 (or rather very close to 0).

I have some added comments in the outputError_test.any file.

Please see ‘output error shift.zip’ in the file section for an example of how to
replicate this
error.

Note:
This may have been fixed in the latest release, I am using 3.0.0 right now.

Thank you in advance

-David

Hello David,

Thanks for the bug report; as always it is sincerely appreciated.

You are indeed right about that this is a strange behavior. It has been
fixed; however not in version 3.0.1 but in a coming version.

I should point out that it has never been the idea to have a fixed amount of
spaces between columns. Actually the bug was in the mechanism that inserts
an extra space for non-negative numbers in order to make all columns have
the same width. In other words, the space between columns should contain:

  1. The SepSign you can specify from the AnyOutputFile interface

  2. a space

  3. a minus for negative numbers or a second space for non-negative numbers.

Does this irritate your concrete application? We are always open for
suggestions on improving the formats.

Best regards,

Michael


Michael Damsgaard, AnyBody Support

<http://www.anybodytech.com> www.anybodytech.com


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of dww805
Sent: Friday, February 22, 2008 20:48
To: anyscript@yahoogroups.com
Subject: [AnyScript] output file error

Hello all,

I am encountering a formatting error when I output data to a file. This
error may not seem
like a big deal, but it is causing me problems so I thought I would post it.

What happens is that I would like the same number of spaces (in the example
I set this to be
one space) between the data columns. Yet when I run the example code (see
below), I get an
added space for values that are negative 0 (or rather very close to 0).

I have some added comments in the outputError_test.any file.

Please see ‘output error shift.zip’ in the file section for an example of
how to replicate this
error.

Note:
This may have been fixed in the latest release, I am using 3.0.0 right now.

Thank you in advance

-David

[Non-text portions of this message have been removed]

Hello Michael,

Thanks again for the update and the fix in the future release.

With regard to this error upsetting another program, it did have the potential.
The other
program liked fixed width columns and didn’t have the capacity to use delimiters
(so exact
character counts were required). I am not sure of the legacy of formats like
this, but I
think they were popular with Fortran programs.

Thanks again!

-David

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hello David,
>
>
>
> Thanks for the bug report; as always it is sincerely appreciated.
>
> You are indeed right about that this is a strange behavior. It has been
> fixed; however not in version 3.0.1 but in a coming version.
>
>
>
> I should point out that it has never been the idea to have a fixed amount of
> spaces between columns. Actually the bug was in the mechanism that inserts
> an extra space for non-negative numbers in order to make all columns have
> the same width. In other words, the space between columns should contain:
>
> 1) The SepSign you can specify from the AnyOutputFile interface
>
> 2) a space
>
> 3) a minus for negative numbers or a second space for non-negative numbers.
>
>
>
> Does this irritate your concrete application? We are always open for
> suggestions on improving the formats.
>
>
>
> Best regards,
>
>
>
> Michael
>
> ------------------------------
>
> Michael Damsgaard, AnyBody Support
>
> <http://www.anybodytech.com> www.anybodytech.com
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
> Of dww805
> Sent: Friday, February 22, 2008 20:48
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] output file error
>
>
>
> Hello all,
>
> I am encountering a formatting error when I output data to a file. This
> error may not seem
> like a big deal, but it is causing me problems so I thought I would post it.
>
> What happens is that I would like the same number of spaces (in the example
> I set this to be
> one space) between the data columns. Yet when I run the example code (see
> below), I get an
> added space for values that are negative 0 (or rather very close to 0).
>
> I have some added comments in the outputError_test.any file.
>
> Please see ‘output error shift.zip’ in the file section for an example of
> how to replicate this
> error.
>
> Note:
> This may have been fixed in the latest release, I am using 3.0.0 right now.
>
> Thank you in advance
>
> -David
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

Hello David,

I am planning a fix to your output file issue better.

I am considering to extend the NumberFormat with member that “understand”
C-style-printf() formatting.

I think this will allow you to handle the Fortran interface issue. Either
you can specify for instance:

FormatStr = “%+23.15e”;

providing you with both + and - signs and still constant column width

or for instance

FormatStr = " %g";

where you just get constant amount of (here two) spaces in front of all
numbers (here without scientific notation).

Doesn’t this sound like a versatile solution?

Best regards,

Michael


Michael Damsgaard, AnyBody Support

www.anybodytech.com


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of dww805
Sent: Friday, March 07, 2008 22:12
To: anyscript@yahoogroups.com
Subject: [AnyScript] Re: output file error

Hello Michael,

Thanks again for the update and the fix in the future release.

With regard to this error upsetting another program, it did have the
potential. The other
program liked fixed width columns and didn’t have the capacity to use
delimiters (so exact
character counts were required). I am not sure of the legacy of formats like
this, but I
think they were popular with Fortran programs.

Thanks again!

-David

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
“AnyBody Support” <support@…> wrote:
>
> Hello David,
>
>
>
> Thanks for the bug report; as always it is sincerely appreciated.
>
> You are indeed right about that this is a strange behavior. It has been
> fixed; however not in version 3.0.1 but in a coming version.
>
>
>
> I should point out that it has never been the idea to have a fixed amount
of
> spaces between columns. Actually the bug was in the mechanism that inserts
> an extra space for non-negative numbers in order to make all columns have
> the same width. In other words, the space between columns should contain:
>
> 1) The SepSign you can specify from the AnyOutputFile interface
>
> 2) a space
>
> 3) a minus for negative numbers or a second space for non-negative
numbers.
>
>
>
> Does this irritate your concrete application? We are always open for
> suggestions on improving the formats.
>
>
>
> Best regards,
>
>
>
> Michael
>
> ------------------------------
>
> Michael Damsgaard, AnyBody Support
>
> <http://www.anybodyt <http://www.anybodytech.com> ech.com>
www.anybodytech.com
>
> _____
>
> From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
[mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com] On
Behalf
> Of dww805
> Sent: Friday, February 22, 2008 20:48
> To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> Subject: [AnyScript] output file error
>
>
>
> Hello all,
>
> I am encountering a formatting error when I output data to a file. This
> error may not seem
> like a big deal, but it is causing me problems so I thought I would post
it.
>
> What happens is that I would like the same number of spaces (in the
example
> I set this to be
> one space) between the data columns. Yet when I run the example code (see
> below), I get an
> added space for values that are negative 0 (or rather very close to 0).
>
> I have some added comments in the outputError_test.any file.
>
> Please see ‘output error shift.zip’ in the file section for an example of
> how to replicate this
> error.
>
> Note:
> This may have been fixed in the latest release, I am using 3.0.0 right
now.
>
> Thank you in advance
>
> -David
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

Hello Michael,

That sounds like a great idea. It will definitely be more than I need, but I
like your
approach toward a general solution. A good amount of engineering is data
manipulation,
and more robust methods on the front end (i.e. AnyBody output) will make things
easier
down the road.

Along the lines of a previous post I made in which I thought that the people
submitting
bug reports should be entered into a drawing for some free stuff…maybe the
people that
fix the bugs should be rewarded as well. Keep up the great work!

Thanks!

-David

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hello David,
>
>
>
> I am planning a fix to your output file issue better.
>
> I am considering to extend the NumberFormat with member that “understand”
> C-style-printf() formatting.
>
> I think this will allow you to handle the Fortran interface issue. Either
> you can specify for instance:
>
>
>
> FormatStr = “%+23.15e”;
>
>
>
> providing you with both + and - signs and still constant column width
>
> or for instance
>
>
>
> FormatStr = " %g";
>
>
>
> where you just get constant amount of (here two) spaces in front of all
> numbers (here without scientific notation).
>
>
>
> Doesn’t this sound like a versatile solution?
>
>
>
> Best regards,
>
>
>
> Michael
>
> ------------------------------
>
> Michael Damsgaard, AnyBody Support
>
> www.anybodytech.com
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
> Of dww805
> Sent: Friday, March 07, 2008 22:12
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] Re: output file error
>
>
>
> Hello Michael,
>
> Thanks again for the update and the fix in the future release.
>
> With regard to this error upsetting another program, it did have the
> potential. The other
> program liked fixed width columns and didn’t have the capacity to use
> delimiters (so exact
> character counts were required). I am not sure of the legacy of formats like
> this, but I
> think they were popular with Fortran programs.
>
> Thanks again!
>
> -David
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
> “AnyBody Support” <support@> wrote:
> >
> > Hello David,
> >
> >
> >
> > Thanks for the bug report; as always it is sincerely appreciated.
> >
> > You are indeed right about that this is a strange behavior. It has been
> > fixed; however not in version 3.0.1 but in a coming version.
> >
> >
> >
> > I should point out that it has never been the idea to have a fixed amount
> of
> > spaces between columns. Actually the bug was in the mechanism that inserts
> > an extra space for non-negative numbers in order to make all columns have
> > the same width. In other words, the space between columns should contain:
> >
> > 1) The SepSign you can specify from the AnyOutputFile interface
> >
> > 2) a space
> >
> > 3) a minus for negative numbers or a second space for non-negative
> numbers.
> >
> >
> >
> > Does this irritate your concrete application? We are always open for
> > suggestions on improving the formats.
> >
> >
> >
> > Best regards,
> >
> >
> >
> > Michael
> >
> > ------------------------------
> >
> > Michael Damsgaard, AnyBody Support
> >
> > <http://www.anybodyt <http://www.anybodytech.com> ech.com>
> www.anybodytech.com
> >
> > _____
> >
> > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> [mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com] On
> Behalf
> > Of dww805
> > Sent: Friday, February 22, 2008 20:48
> > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> > Subject: [AnyScript] output file error
> >
> >
> >
> > Hello all,
> >
> > I am encountering a formatting error when I output data to a file. This
> > error may not seem
> > like a big deal, but it is causing me problems so I thought I would post
> it.
> >
> > What happens is that I would like the same number of spaces (in the
> example
> > I set this to be
> > one space) between the data columns. Yet when I run the example code (see
> > below), I get an
> > added space for values that are negative 0 (or rather very close to 0).
> >
> > I have some added comments in the outputError_test.any file.
> >
> > Please see ‘output error shift.zip’ in the file section for an example of
> > how to replicate this
> > error.
> >
> > Note:
> > This may have been fixed in the latest release, I am using 3.0.0 right
> now.
> >
> > Thank you in advance
> >
> > -David
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>