Skip to content

Commit

Permalink
aufgeraäumt
Browse files Browse the repository at this point in the history
  • Loading branch information
RincewindWizzard committed Nov 1, 2023
1 parent ed9334e commit b1eed71
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 336 deletions.
89 changes: 0 additions & 89 deletions src/js/calculator.js

This file was deleted.

200 changes: 0 additions & 200 deletions src/js/histogram.js

This file was deleted.

40 changes: 0 additions & 40 deletions src/js/t_shirt_inputs_ui.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/js/t_shirt_table.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/script/calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function calculateMinimumCapacity(histogram: Histogram, confidenceLevel: number)
}


return NaN
return histogram[histogram.length - 1][0]
}

function calculateSuccessProbability(histogram: Histogram, capacity: number): number {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/script/t_shirt.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import {t_shirt_sizes} from '../js/csv_import_hack.js'
import {t_shirt_sizes} from './csv_import_hack.js'


export class TShirt {
Expand Down
2 changes: 2 additions & 0 deletions src/webworker/worker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// TODO: part of the heavy weight calculations of calculator.ts schon be done in a web worker

self.onmessage = (event) => {
const message = event.data
if (message.type === 'request') {
Expand Down

0 comments on commit b1eed71

Please sign in to comment.