clirdlf / digitization_cost_calculator

Digitization cost calculator
http://dashboard.diglib.org/
Apache License 2.0
8 stars 3 forks source link

Rake tasks throwing errors #26

Closed waynegraham closed 7 years ago

waynegraham commented 7 years ago

Error is being thrown generating Image Capture stats file

NoMethodError: undefined method `[]' for nil:NilClass
/Users/waynegraham/projects/digitization_cost_calculator/Rakefile:490:in `block (2 levels) in image_capture_stats'
/Users/waynegraham/projects/digitization_cost_calculator/Rakefile:488:in `each'
/Users/waynegraham/projects/digitization_cost_calculator/Rakefile:488:in `block in image_capture_stats'
/Users/waynegraham/projects/digitization_cost_calculator/Rakefile:477:in `each'
/Users/waynegraham/projects/digitization_cost_calculator/Rakefile:477:in `image_capture_stats'
/Users/waynegraham/projects/digitization_cost_calculator/Rakefile:585:in `block (2 levels) in <top (required)>'
/Users/waynegraham/.rvm/gems/ruby-2.4.2/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
/Users/waynegraham/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `eval'
/Users/waynegraham/.rvm/gems/ruby-2.4.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => default => convert:all => convert:data
waynegraham commented 7 years ago

It appears as though that the fields in the spreadsheet were added to. The codebase uses the column number as its mapping. Need to update how the columns are being mapped to use the column heading name (e.g. Submitter information-Name rather than row[1]) to avoid this issue in the future.

gaijingal commented 7 years ago

Yes, the new Unique ID field got added in column A

On Wed, Oct 11, 2017 at 10:16 AM, Wayne Graham notifications@github.com wrote:

It appears as though that the fields in the spreadsheet were added to. The codebase uses the column number as its mapping. Need to update how the columns are being mapped to use the column heading name (e.g. Submitter information-Name rather than row[1]) to avoid this issue in the future.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/clirdlf/digitization_cost_calculator/issues/26#issuecomment-335825381, or mute the thread https://github.com/notifications/unsubscribe-auth/AHeF2hodGEc38g2UhIoYNRLo2qrkTYjrks5srM3YgaJpZM4P1h4S .