I have a field where I am trying to infer a decimal value using the following:
let fNode = wfschema.asAnalysisPosition(focusNode)
let media = fNode.media
let sum_media = media?.reduce((cur, val) => cur + val.mediaDevelopmentHours, 0)
let perfSupp = fNode.performanceSupportMaterials
let sum_perfSupp = perfSupp?.reduce((cur, val) => cur + val.developmentHours, 0)
let estTime = fNode.estimatedTimeToCompletion
if(media && media.length > 0 && perfSupp && perfSupp.length > 0 && estTime) (sum_media + sum_perfSupp) * estTime
It is returning an NaN and I cannot figure out why. I have verified that each of the properties it is looking at has a decimal datatype. How else should I troubleshoot?
Please let me know if additional information is required. Thanks!
GaBriella Branson
Interagency Wildland Fire Data Management – Knowledge Manager
U.S. Department of the Interior, Office of Wildland Fire
Mobile: 907-483-0330 | gabriell...@ios.doi.gov
Follow us online: Website | Facebook | Flickr | X
Stay connected! Sign up to receive email updates
<image001.jpg> <image002.png>--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/topbraid-users/CO6PR09MB7319351504DD77749220F2B0DA232%40CO6PR09MB7319.namprd09.prod.outlook.com.
To view this discussion visit https://groups.google.com/d/msgid/topbraid-users/09C6290D-4D64-4920-B0A0-B651EDBE3A06%40topquadrant.com.
Thank you, Holger and Richard!
From: topbrai...@googlegroups.com <topbrai...@googlegroups.com>
On Behalf Of Holger Knublauch
Sent: Friday, November 22, 2024 1:49 AM
To: 'Luis Enrique Ramos García' via TopBraid Suite Users <topbrai...@googlegroups.com>
Subject: [EXTERNAL] Re: [topbraid-users] Receiving NaN response
This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding. |
To view this discussion visit https://groups.google.com/d/msgid/topbraid-users/E50E19BF-BF3E-4B97-A90E-1933AA24A6B7%40topquadrant.com.