Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
const propertyValue = variables.custom.qualificationNeeded

switch (propertyValue) {
	case true:
		return 0.35
	case false:
		return 1.0
	default:
		return null
}

Image Added

Scores

Scores can aggregate blackbox results into an overall result

...

The results of blackbox and score calculations can be verified in several places in the admin panel

...

Show parts with errors in the calculation

  1. Go to Parts
    Home › B3_Ampi › Parts

  2. Use the filter option With errors

    Image Added

  3. Any part still visible in the list now has an error somewhere in the calculation

  4. Open the part details

  5. Scroll down to the blackbox results

  6. Check the list of blackboxes for those with an error

...

Overview of all calculation results for one particular part

To see all the score and blackbox results for one particular part, do the following

  1. Go to Parts
    Home › B3_Ampi › Parts

  2. Find the part that you are interested in and open the details

  3. Scroll down past the properties

You’ll reach a table with all score results for this part and a table with all blackbox results just below.

...

Verifying the calculation results of one score or blackbox for one part

To see detailed results of a score or blackbox including all input variables for one particular part do the following:

  1. Go to Parts
    Home › B3_Ampi › Parts

  2. Find the part that you are interested in and open the details

  3. Open either Blackbox tester or Score tester

  4. From the list, select the score or blackbox you are interested in

Detailed score and blackbox results of the econ score.

...

Detailed input used in the blackbox and score calculations

...

Triggering recalculation

For performance reasons and to reduce server load, blackbox and score results are only calculated once and then stored for repeated use. If a blackbox or score script is changed, you need to manually trigger a re-calculation of blackbox and score results. It is sufficient to trigger the recalculation once at the end of your editing actions.

The system triggers re-calculation automatically once a day, so that changes are reflected in scores latest after 24 hours - even if no manual recalculation was triggered.

...

Appendix

Example

Full econ score script

...