view implementations/meredith/tests/import-raph-c-data.lisp @ 296:68aadc4eb96d

add chromatic-pitch reader method Ignore-this: 1aba35b7d196e0994a817609337746e1 darcs-hash:20090828145217-16a00-312e63170f50f0bf2834b8959a72e5c857cba9b8.gz
author j.forth <j.forth@gold.ac.uk>
date Fri, 28 Aug 2009 15:52:17 +0100
parents d22c67dac97d
children c9573d61b1b9
line wrap: on
line source
(cl:in-package #:amuse-meredith)

(asdf:oos 'asdf:load-op 'amuse-meredith)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Tell the database about the new implementation.
(amuse-database-admin:register-new-implementation *package*)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Add the datasets to the database
(connect-to-database :database-name "test")

(create-meredith-tables *amuse-database*)

(import-bach-inv+sin *amuse-database*)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Retrieve compositions
(defparameter *bach*
  (get-composition (make-meredith-composition-identifier 1)))

(defparameter *bach-dataset*
  (get-dataset (make-amuse-dataset-identifier 1)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Tidy up
;;(drop-meredith-tables *amuse-database*)
(disconnect-from-database)