Online OxCal 4.4- SyntaxError - model successful on prior version

155 views
Skip to first unread message

Mark Hemphill-Haley

unread,
Aug 24, 2020, 5:18:46 AM8/24/20
to OxCal
Greetings all - I apologize if this is a repeat post.

I have a pretty simple model that ran successfully on the prior online iteration of OxCal. I only tried to run the same set of commands using the new online version.

It runs almost to completion, over 4,000,000 passes. Then I get the following error:
"Could not read output...
(SyntaxError: Unexpected token '}')
Try again?"

Here is the set of commands:

 Plot()
 {
  Sequence("Black Canyon 3 event TL")
  {
   Comment("C_date is TL sample collection date[1990] minus lab date");
   Comment("C_date is OSL sample collection date[2019] minus lab date");
   Boundary("Sequence start");
   Phase("Unit 2x - Alluvium with channel")
   {
    R_date("RC BC2 24,120yb1990 Unit 2x channel", 24120,120);
    R_date("RC BC3 25,100yb1990 Unit 2x channel", 24100,199);
   };
   {
    C_Date("TL F90-ID1 25000yb1990 Unit C1", -23010, 3000);
   };
   //Max limiting age for event BC3 is based on age of loess burying unit C1 event colluvium
   Date("BC3")
   {
    color="Red";
   };
   Date("BC2")
   {
    color="Red";
   };
   Date("BC1")
   {
    color="Red";
   };
   Phase("Unit 1xa - reworked loess")
   {
    C_Date("TL F90-ID2 18000yb1990 Unit C1", -16010, 4000);
    C_Date("TL F90-ID2 24000yb1990 Unit C1", -22010, 4000);
   };
   Boundary("Sequence end",1900);
   C_Date("2020",2020,0);
  };
 };

Any help is greatly appreciated.

Mark
2020-08-21_19-52-57.jpg

Christopher Ramsey

unread,
Aug 24, 2020, 5:58:32 AM8/24/20
to OxCal
Dear Mark

Yes the issue is with the lines:

...
};
{
C_Date("TL F90-ID1 25000yb1990 Unit C1", -23010, 3000);
};

I think this should be:

...
};
Phase
{
C_Date("TL F90-ID1 25000yb1990 Unit C1", -23010, 3000);
};

or just:

};
C_Date("TL F90-ID1 25000yb1990 Unit C1", -23010, 3000);

The new version does allow javascript type objects and arrays to be passed through tot he output and this looks like an object but has not attributes and so it complains. I have also added some extra information when it fails to read an output file which should help. It will now tell you what code caused the problem and where in the output file.

Best wishes

Christopher
> <2020-08-21_19-52-57.jpg>
>
> --
> You received this message because you are subscribed to the Google Groups "OxCal" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to oxcal+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/oxcal/f88851c4-1c04-4384-b461-d6ec7fb8c031n%40googlegroups.com.
> <2020-08-21_19-52-57.jpg>

Reply all
Reply to author
Forward
0 new messages