annotate implementations/meredith/tests/import-raph-c-data.lisp @ 330:2fbff655ba47
tip
Removed cpitch-adj and cents SQL columns
author |
Jeremy Gow <jeremy.gow@gmail.com> |
date |
Mon, 21 Jan 2013 11:08:11 +0000 |
parents |
3c5bf3f7b7a0 |
children |
6a3adca16910 |
rev |
line source |
j@286
|
1 (cl:in-package #:amuse-meredith)
|
j@286
|
2
|
j@286
|
3 (asdf:oos 'asdf:load-op 'amuse-meredith)
|
j@286
|
4
|
j@303
|
5 (connect-to-database :database-name "test")
|
j@303
|
6
|
j@286
|
7 ;; Tell the database about the new implementation.
|
j@286
|
8 (amuse-database-admin:register-new-implementation *package*)
|
j@286
|
9
|
j@286
|
10 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
j@286
|
11 ;; Add the datasets to the database
|
j@286
|
12 (create-meredith-tables *amuse-database*)
|
j@286
|
13
|
j@303
|
14 (import-bach-inv+sin *amuse-database*) ; FIXME: return an identifier.
|
j@286
|
15
|
j@286
|
16 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
j@286
|
17 ;; Retrieve compositions
|
j@286
|
18 (defparameter *bach*
|
j@286
|
19 (get-composition (make-meredith-composition-identifier 1)))
|
j@286
|
20
|
j@286
|
21 (defparameter *bach-dataset*
|
j@286
|
22 (get-dataset (make-amuse-dataset-identifier 1)))
|
j@286
|
23
|
j@286
|
24 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
j@286
|
25 ;; Tidy up
|
j@286
|
26 ;;(drop-meredith-tables *amuse-database*)
|
j@286
|
27 (disconnect-from-database)
|