comparison 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
comparison
equal deleted inserted replaced
214:545f80a73f03 215:4eceac78e7c6
1 (cl:in-package #:amuse-meredith)
2
3 (asdf:oos 'asdf:load-op 'amuse-meredith)
4
5 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6 ;; Tell the database about the new implementation.
7 (amuse-database-admin:register-new-implementation *package*)
8
9 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
10 ;; Add the datasets to the database
11 (connect-to-database :database-name "test")
12
13 (create-meredith-tables *amuse-database*)
14
15 (import-bach-inv+sin *amuse-database*)
16
17 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
18 ;; Retrieve compositions
19 (defparameter *bach*
20 (get-composition (make-meredith-composition-identifier 1)))
21
22 (defparameter *bach-dataset*
23 (get-dataset (make-amuse-dataset-identifier 1)))
24
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
26 ;; Tidy up
27 ;;(drop-meredith-tables *amuse-database*)
28 (disconnect-from-database)