view · edit · sidebar · attach · print · history

< Niklaus.20131217-fix-sequences-00 | 2013 | Niklaus.20131211-integrate-epha-interaction-5 >>

20131216-fix-oddb2-csv-error

Summary

  • Fix error in oddb2.csv

Commits

Index

---

integrate a simple interface to display the interaction from EPHA

Continue work. Example is still interaction is between Marcoumar and Aspirin. Open problems are:

  • interaction_chooser should work items having more than one ATC-code
  • import of epha_interactions should collect references, too.
  • should allow direct access to results via URL
  • unit-test
  • Ratings (german only) fix coded in src/view/interactions/interaction_chooser.rb.
  • Same for html color codes
  • Text is still "Medikamente wählen und dann die Interaktion in 3D anzeigen"

Example at matrix.epha.org is:

  • Losartan Mepha
  • Metoprolol-Teva Reta
  • Nolvadex
  • Paroxetin-Mepha

Commit a fix Added git pull to make puppet apply pass when Gemfiles have changed because a puppet apply did not work on my vagrant machine as yus and currency did not yet have a Gemfile.

Running jobs/import_daily on oddb-ci2 failed. Fixed with commit Remove binding.pry

Creating the watir test-case to fasten up tests. It took some time to add a test that waits long enough and works also when oddbd was just started. See Attach:interactions_spec.rb. Takes about 90 seconds when oddbd must start.

Now we have all the needed info. As seen in the

Tried several times updating the css stylesheets till I understood, that I have to run bin/update_css to install the changed *.css file. Now the styles are applied (colors are awful, but at least I am sure that I can identify the different style. Don't know why for nolvadex the width is different. Updated the screenshot.

Added different background colours for different severties. Several small fixe. Now I am quite satisfied with the result. See .

Pushed changes via commit Added epha-interaction

Fix error in oddb2.csv

We got yesterday the following error while running import_daily:

Plugin: ODDB::CsvExportPlugin
Error: NoMethodError
Message: undefined method `multi' for :@odba_id:Symbol
Backtrace:
/var/www/oddb.org/src/view/drugs/csv_result.rb:321:in `block in size'
/var/www/oddb.org/src/view/drugs/csv_result.rb:319:in `collect'
/var/www/oddb.org/src/view/drugs/csv_result.rb:319:in `size'
/var/www/oddb.org/src/view/drugs/csv_result.rb:450:in `block (3 levels) in to_csv'
/var/www/oddb.org/src/view/drugs/csv_result.rb:448:in `collect'
/var/www/oddb.org/src/view/drugs/csv_result.rb:448:in `block (2 levels) in to_csv'
/var/www/oddb.org/src/view/drugs/csv_result.rb:433:in `each'
/var/www/oddb.org/src/view/drugs/csv_result.rb:433:in `block in to_csv'
/var/www/oddb.org/src/view/drugs/csv_result.rb:426:in `each'
/var/www/oddb.org/src/view/drugs/csv_result.rb:426:in `to_csv'
/var/www/oddb.org/src/view/drugs/csv_result.rb:470:in `block in to_csv_file'
/var/www/oddb.org/src/view/drugs/csv_result.rb:469:in `open'
/var/www/oddb.org/src/view/drugs/csv_result.rb:469:in `to_csv_file'
/var/www/oddb.org/src/plugin/csv_export.rb:63:in `_export_drugs'
/var/www/oddb.org/src/plugin/csv_export.rb:42:in `export_drugs_extended'
/var/www/oddb.org/src/util/updater.rb:101:in `block in export_oddb2_csv'
/var/www/oddb.org/src/util/updater.rb:495:in `call'
/var/www/oddb.org/src/util/updater.rb:495:in `wrap_update'
/var/www/oddb.org/src/util/updater.rb:99:in `export_oddb2_csv'
/var/www/oddb.org/src/util/updater.rb:265:in `update_bsv_followers'
/var/www/oddb.org/src/util/updater.rb:203:in `run'
/var/www/oddb.org/jobs/import_daily:13:in `block in <module:Util>'
/var/www/oddb.org/src/util/job.rb:40:in `call'
/var/www/oddb.org/src/util/job.rb:40:in `run'
/var/www/oddb.org/jobs/import_daily:12:in `<module:Util>'
/var/www/oddb.org/jobs/import_daily:11:in `<module:ODDB>'
/var/www/oddb.org/jobs/import_daily:10:in `<main>'

est/test_plugin/csv_export.rb has 4 skips but no failures. Adding debug output to catch the error. But on my oddb-ci2 the import passes without any problem. Getting the db_dump from thinpower. Did not help. Cannot reproduce it here.

view · edit · sidebar · attach · print · history
Page last modified on January 06, 2014, at 10:33 AM