quintel / etmoses

Online decision support tool to create local energy situations for neighbourhoods, cities and regions with a time resolution of 15 minutes created and maintained by Quintel – Not maintained
https://moses.energytransitionmodel.com
MIT License
11 stars 3 forks source link

[Airbrake] [Production] comparison of String with 0 failed #1407

Open dennisquintel opened 8 years ago

dennisquintel commented 8 years ago

Airbrake error: #4776 Airbrake project: ETMoses

Error type: ArgumentError Error message: comparison of String with 0 failed Where: testing_grounds#update Occurred at: Sep 01, 2016 12:04:40 UTC First seen at: Sep 01, 2016 12:04:40 UTC Occurrences: 1 (1 since last deploy on Jul 18, 2016 11:54:39 UTC)

URL: https://moses.energytransitionmodel.com/testing_grounds/539 File: [PROJECT_ROOT]/app/models/testing_ground.rb

Backtrace:

[PROJECT_ROOT]/app/models/testing_ground.rb:182:in <
[PROJECT_ROOT]/app/models/testing_ground.rb:182:in block in validate_technology_profile_units
[PROJECT_ROOT]/app/models/technology_list.rb:111:in each
[PROJECT_ROOT]/app/models/technology_list.rb:111:in each_tech
grdw commented 8 years ago

This is another type casting done wrong. units is interpreted as as String probably due to a faulty CSV import. In Excel, when the CSV is exported, the numbers are being seen as a String due to a fauly separator setting (?) would be my guess.