Skip to content

new error in use_DRAC() due to DRAC changes #919

@mcol

Description

@mcol

The following error is making this test fail:

input <- template_DRAC(preset = "DRAC-example_quartz")
input$`Project ID` <- "DRAC-Example"
input$`Sample ID` <- "Quartz"
input$`Conversion factors` <- "AdamiecAitken1998"
input$`External U (ppm)` <- 3.4
input$`errExternal U (ppm)` <- 0.51
input$`External Th (ppm)` <- 14.47
input$`errExternal Th (ppm)` <- 1.69
input$`External K (%)` <- 1.2
input$`errExternal K (%)` <- 0.14
input$`Calculate external Rb from K conc?` <- "Y"
input$`Calculate internal Rb from K conc?` <- "Y"
input$`Scale gammadoserate at shallow depths?` <- "Y"
input$`Grain size min (microns)` <- 90L
input$`Grain size max (microns)` <- 125L
input$`Water content ((wet weight - dry weight)/dry weight) %` <- 5
input$`errWater content %` <- 2
input$`Depth (m)` <- 2.2
input$`errDepth (m)` <- 0.22
input$`Overburden density (g cm-3)` <- 1.8
input$`errOverburden density (g cm-3)` <- 0.1
input$`Latitude (decimal degrees)` <- 30.0000
input$`Longitude (decimal degrees)` <- 70.0000
input$`Altitude (m)` <- 150
input$`De (Gy)` <- 20
input$`errDe (Gy)` <- 0.2
use_DRAC(input)

# Error: [use_DRAC()]
#	 We got a response from the server, but it
#	 did not contain DRAC output. Please check
#	 your data and verify its validity.

Looking at the response, it looks like this, which suggests that the DRAC backend has somewhat changed:

<b>Deprecated</b>:  Creation of dynamic property Drac::$data is deprecated in <b>/webfs/drcwww/devel/calculator/drac.php</b> on line <b>16</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Drac::$output_file_name is deprecated in <b>/webfs/drcwww/devel/calculator/drac.php</b> on line <b>19</b><br />
<br />
<b>Fatal error</b>:  Uncaught TypeError: Unsupported operand types: string * float in /webfs/drcwww/devel/calculator/outputs.php:239
Stack trace:
#0 /webfs/drcwww/devel/calculator/output_helpers.php(132): {closure}()
#1 /webfs/drcwww/devel/calculator/outputs.php(769): VALUE()
#2 /webfs/drcwww/devel/calculator/output_helpers.php(132): {closure}()
#3 /webfs/drcwww/devel/calculator/outputs.php(1370): VALUE()
#4 /webfs/drcwww/devel/calculator/output_helpers.php(132): {closure}()
#5 /webfs/drcwww/devel/calculator/drac.php(120): VALUE()
#6 /webfs/drcwww/devel/main/drac-init.php(27): Drac-&gt;run_calc()
#7 /webfs/drcwww/devel/index.php(6): require_once('...')
#8 {main}
  thrown in <b>/webfs/drcwww/devel/calculator/outputs.php</b> on line <b>239</b><br />

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug (external)Bug in an external package or an external resource that affects us

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions