djuna commited on
Commit
4a09747
1 Parent(s): 5cd151e

fix regarding to quotient by 0.5 in config generation

Browse files
Files changed (1) hide show
  1. index.html +2 -1
index.html CHANGED
@@ -158,7 +158,8 @@
158
  }
159
 
160
  // Check if there are remaining layers
161
- if (totalLayers % rangeSize!== 0) {
 
162
  let start = totalLayers - (totalLayers % rangeSize);
163
  let end = totalLayers;
164
  yamlStr += `- sources:\n`;
 
158
  }
159
 
160
  // Check if there are remaining layers
161
+ const quotient = totalLayers / rangeSize;
162
+ if (Number.isInteger(quotient) || (quotient % 0.5 === 0 && !Number.isInteger(quotient))) {
163
  let start = totalLayers - (totalLayers % rangeSize);
164
  let end = totalLayers;
165
  yamlStr += `- sources:\n`;