waqasbhatti / sdssidl

Automatically exported from code.google.com/p/sdssidl
0 stars 0 forks source link

BOOT_SAMPLES: Could not extract from d0 #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

IDL> x=randomn(5L, 10)
IDL> print, x         
     0.521414    -0.945489     0.683157      1.22728    0.0753817     -2.09936    -0.983745     0.437967
    -0.211478     0.360088
IDL> bs=bootstrap(1000,x)
% Compiled module: BOOTSTRAP.
% Variable is undefined: D0.
% BOOT_SAMPLES: Could not extract from d0

What is the expected output? What do you see instead?

Supposed to create bootstrap samples and calculate statistics for input 
variables, but won't complete run.

What version of the product are you using? On what operating system?

The latest download from the Jan 2012 tarball of all the files. I'm using it on 
a Linux system. 

Please provide any additional information below.

Also, I have edited one line in boot_samples.pro, line 51.
I changed dinput[i] = n to dinput[i-1] = n
I did this because otherwise the for loop looped outside the number of elements 
in dinput. 

Original issue reported on code.google.com by cegl...@gmail.com on 29 Apr 2013 at 7:57

GoogleCodeExporter commented 9 years ago
thanks for your note.  I don't have access to IDL right now, but I'll try to 
check this out in the next few days.

-Erin

Original comment by erin.sheldon@gmail.com on 1 May 2013 at 2:11

GoogleCodeExporter commented 9 years ago
I'm sorry, I won't have access to IDL any time soon and the other maintainers 
are not available for the next couple of weeks.  I'm afraid we won't be able to 
get to this until after that time.

-e

Original comment by erin.sheldon@gmail.com on 16 May 2013 at 4:21

GoogleCodeExporter commented 9 years ago
I have fixed this issue. The problem was inconsistency in boot_samples.pro 
sometimes counting from 0 and sometimes from 1. Please download the new version 
of boot_samples (which I have also attached here) and verify that the example 
you reported now works correclty.

Original comment by kimball....@gmail.com on 1 Aug 2013 at 8:11

Attachments:

GoogleCodeExporter commented 9 years ago
Downloaded the new version and it now works correctly for the example I 
reported. Many thanks!

Original comment by cegl...@gmail.com on 1 Aug 2013 at 8:17