irie 0.0.4__py3-none-any.whl → 0.0.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of irie might be problematic. Click here for more details.

@@ -189,14 +189,14 @@ function handleCorridorUpdate(event) {
189
189
  // Normalize weights if totalWeight > 0 to avoid division by zero
190
190
  if (totalWeight > 0) {
191
191
  weightFields.forEach(field => {
192
- const normalizedValue = field.value / totalWeight;
192
+ const normalizedValue = field.value / totalWeight*100;
193
193
  formData.set(field.key, normalizedValue);
194
194
 
195
195
  // Update the input field in the form
196
196
  const inputElement = form.querySelector(`[name="${field.key}"]`);
197
197
  if (inputElement) {
198
198
  // Limit decimals for readability
199
- inputElement.value = normalizedValue.toFixed(4);
199
+ inputElement.value = normalizedValue.toFixed(0);
200
200
  }
201
201
  });
202
202
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: irie
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Infrastructure Resilience Engine
5
5
  Author-email: wd <5018-006+wd@users.noreply.github.com>
6
6
  Project-URL: Repository, https://github.com/STAIRLab/irie
@@ -422,7 +422,7 @@ irie/apps/templates/layouts/base-fullscreen.html,sha256=14X-eubwjujt4jGMJGvbYqaW
422
422
  irie/apps/templates/layouts/base.html,sha256=1fJ-YCAQMd-Lf83B4Lf1sMPkS6oGAzrmD5_h1xs-SKI,2313
423
423
  irie/apps/templates/layouts/json-form.html,sha256=cT6Pd2168Z3p8RODS7SulUC79LnuzSs0EVLVxkGOXAo,1333
424
424
  irie/apps/templates/networks/corridor_table.html,sha256=VijOUKq15D3zqru5nq-WZin59YIwb5FvOB1F8-K_MJQ,894
425
- irie/apps/templates/networks/networks.js,sha256=oENJ0SqTJYfbgHmI1w-QcUPbgI182kRienSrxyRPD4o,7440
425
+ irie/apps/templates/networks/networks.js,sha256=5uEshaGOxzwEbDo4nOVK2lCrNrYL_MO2d4vgqAIOT3U,7444
426
426
  irie/apps/templates/networks/styled_inputs.html,sha256=4IqtA4oQw6zAc2oypEYspIn_dS0syvVtZvkshhj1Tco,118
427
427
  irie/apps/templates/prediction/asset-predictors.html,sha256=Uu4QdwYe7xvtTG0NSMg9Fu5azajJBCiJTYyWnLBbhkk,3810
428
428
  irie/apps/templates/prediction/form-submission.html,sha256=IBAHLK2gr7kMgD-nemx-VVGpT4npEQwdsL5uGYiOhy8,5564
@@ -467,8 +467,8 @@ irie/init/data/networks/soga_corridors.json,sha256=AQOUaKGNWkQxQKLfqphE9Qb_-NRmj
467
467
  irie/init/management/commands/init_assets.py,sha256=LtptSA90Czy9vh3qfn6QqfLkR6o3Nw30QRQh4Poe8Qk,6426
468
468
  irie/init/management/commands/init_corridors.py,sha256=kvcY8V5blEdyUxVGxm3wtBhv9AddPz0wAUJFRufZVxo,1359
469
469
  irie/init/management/commands/init_predictors.py,sha256=5JwAb8vJUTCMVtwzolZLjxrN-O-UJxiiZg-ugTtbGoA,1993
470
- irie-0.0.4.dist-info/METADATA,sha256=Z0E5iXGM8hOa_ezoqZIQVV_vhWPQJugK0wyLOyTgv_s,2457
471
- irie-0.0.4.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
472
- irie-0.0.4.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
473
- irie-0.0.4.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
474
- irie-0.0.4.dist-info/RECORD,,
470
+ irie-0.0.5.dist-info/METADATA,sha256=sOY6o2sNavhZF67yXCbStshIzBcr4LH3LL0sr1pPuL8,2457
471
+ irie-0.0.5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
472
+ irie-0.0.5.dist-info/entry_points.txt,sha256=A_3h9wPBGfxGQ78_MGa-nO6Z0foxOYeAnIE47jxEztg,44
473
+ irie-0.0.5.dist-info/top_level.txt,sha256=zVCxi5E2nkISZPzKq8VEhWe_dGuPcefLYV1tYqQdwlY,5
474
+ irie-0.0.5.dist-info/RECORD,,
File without changes