@bimenergy/calculation-utils

Functions to generate (preprocessed) calculation data for the Core

Usage no npm install needed!

<script type="module">
  import bimenergyCalculationUtils from 'https://cdn.skypack.dev/@bimenergy/calculation-utils';
</script>

README

Calculation-utils

Module to generate (preprocessed) calculation data for the Core. Acts as a converter between two different formats, BIM Energy data and Calculation data.

Generate calculation data example

import { generateCalculationData } from '@bimenergy/calculation-utils';

// Raw BIM Energy data stored in an object
const dbData = {
  building,
  project,
  zones,
};

// If building parts should be merged
const merge = true;

// Calculation data ready to be used in the Core
const calculationData = generateCalculationData(dbData, merge);

Package release procedure

0. update modules
1. npm run build
2. npm run test
3. git add . && git commit -m "<chore/feat/BREAKING CHANGE>(calculation-utils): <COMMIT MESSAGE>"
4. npm version patch
5. git add . && git commit -m "chore(calculation-utils): Versionbump"
6. git push
7. npm publish