annotate implementations/meredith/tests/import-raph-c-data.lisp @ 215:4eceac78e7c6

add minimal backend for Dave Meredith's data Ignore-this: 91608f727967a4c5709bd41634ab9ae2 darcs-hash:20090524193956-16a00-038e6f7cb235dea4e7efcc70c4d1a7bc7fd402a6.gz committer: Jamie Forth <j.forth@gold.ac.uk>
author j.forth <j.forth@gold.ac.uk>
date Thu, 24 Feb 2011 11:23:18 +0000
parents
children c9573d61b1b9
rev   line source
j@215 1 (cl:in-package #:amuse-meredith)
j@215 2
j@215 3 (asdf:oos 'asdf:load-op 'amuse-meredith)
j@215 4
j@215 5 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
j@215 6 ;; Tell the database about the new implementation.
j@215 7 (amuse-database-admin:register-new-implementation *package*)
j@215 8
j@215 9 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
j@215 10 ;; Add the datasets to the database
j@215 11 (connect-to-database :database-name "test")
j@215 12
j@215 13 (create-meredith-tables *amuse-database*)
j@215 14
j@215 15 (import-bach-inv+sin *amuse-database*)
j@215 16
j@215 17 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
j@215 18 ;; Retrieve compositions
j@215 19 (defparameter *bach*
j@215 20 (get-composition (make-meredith-composition-identifier 1)))
j@215 21
j@215 22 (defparameter *bach-dataset*
j@215 23 (get-dataset (make-amuse-dataset-identifier 1)))
j@215 24
j@215 25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
j@215 26 ;; Tidy up
j@215 27 ;;(drop-meredith-tables *amuse-database*)
j@215 28 (disconnect-from-database)