Hi All,

  I am using demeter on Mac OS 10.15 (the latest release) and am encountering some problems that I was hoping could be cleared up, in particular with Athena. The Athena version is 0.9.25, the latest version from MacPorts.  Athena starts and properly plots existing projects without trouble, but trying to open a new data set using the PFBL12C plug in. From the Perl error messages below, it appears that the underlying cause is not from the Plugin, but from some problem within Demeter, with an uninitialized values in particular at line 115 that starts with the “my $text” assignment.  Any ideas on what could be going wrong or what other debugging information might be useful.

 

Paul Fons

 

Arrays.pm

 

sub get_array {

  my ($self, $suffix, $part) = @_;

  $part ||= q{};

  if (not $self->plottable) {

    my $class = ref $self;

    croak("Demeter: $class objects have no arrays associated with them and are not plottable");

  };

  my $group = $self->group;

  my $text = ($part =~ m{(?:bkg|fit|res|run)}) ? "${group}_$part.$suffix" : "$group.$suffix";

 

  my @array = $self->fetch_array($text);

  return @array;

};

 

 

 

Perl error messages:

 

 

16:07:51: Use of uninitialized value $suffix in concatenation (.) or string at /opt/local/lib/perl5/site_perl/5.26/darwin-thread-multi-2level/Demeter/Data/Arrays.pm line 115.

 

16:07:51: Use of uninitialized value in concatenation (.) or string at /opt/local/lib/perl5/site_perl/5.26/darwin-thread-multi-2level/Demeter/Data/Mu.pm line 231.

 

16:07:51: Use of uninitialized value in concatenation (.) or string at /opt/local/lib/perl5/site_perl/5.26/darwin-thread-multi-2level/Demeter/Data/Mu.pm line 232.

 

16:07:51: Use of uninitialized value in concatenation (.) or string at /opt/local/lib/perl5/site_perl/5.26/darwin-thread-multi-2level/Demeter/Data/Mu.pm line 233.

 

16:07:51: Use of uninitialized value in concatenation (.) or string at /opt/local/lib/perl5/site_perl/5.26/darwin-thread-multi-2level/Demeter/Data/Mu.pm line 233.

 

16:07:51: Use of uninitialized value in concatenation (.) or string at /opt/local/lib/perl5/site_perl/5.26/darwin-thread-multi-2level/Demeter/Data/Mu.pm line 234.

 

Fragment of example data set causing trouble

 

  9809     SPring-8 01b1 

 GeTe_reference  19.10.31 11:20 - 19.10.31 11:22

 Te standard                                                                     

 Ring :   8.0 GeV    99.5 mA -   99.5 mA

 Mono :   SI(311)       D=  1.63747 A    Initial angle=  7.06039 deg

 01b1      Transmission( 2)   Repetition=  1     Points= 4798

 Param file :                 angle axis (1)     Block =    1

 

 Block      Init-ang  final-ang     Step/deg     Time/s       Num

     1        7.00000   6.52000    -0.000100       0.03      4798

 Ortec( 0)     NDCH = 4

  Angle(c)  Angle(o)    time/s         2         3         4

      Mode         0         0         1         2         1

    Offset         0         0 49961.200 49083.900  1124.500

   6.99980   7.00417     0.025    121003    450174

   6.99970   7.00407     0.025    120103    447134

   6.99960   7.00398     0.025    120212    447353

   6.99950   7.00388     0.025    120465    448618

   6.99940   7.00379     0.025    121167    450721

   6.99930   7.00370     0.025    120510    448136

   6.99920   7.00361     0.025    120907    450140

   6.99910   7.00352     0.025    120063    446166

   6.99900   7.00343     0.025    120656    449360

   6.99890   7.00335     0.025    120901    450062

   6.99880   7.00326     0.025    120820    449932

   6.99870   7.00317     0.025    120655    448835

   6.99860   7.00308     0.025    120869    449502

   6.99850   7.00299     0.025    120818    449723

   6.99840   7.00290     0.025    121239    450978

   6.99830   7.00280     0.025    120744    449404