view implementations/meredith/tests/import-raph-c-data.lisp @ 306:d70ff27b1968

add note about linked-events mixin Ignore-this: c5677560055960b06b1689b7a89f6d39 darcs-hash:20100404210537-16a00-7ca82f871410639d74103e352ecad60979a128c9.gz
author j.forth <j.forth@gold.ac.uk>
date Sun, 04 Apr 2010 22:05:37 +0100
parents 3c5bf3f7b7a0
children 6a3adca16910
line wrap: on
line source
(cl:in-package #:amuse-meredith)

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

(connect-to-database :database-name "test")

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

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Add the datasets to the database
(create-meredith-tables *amuse-database*)

(import-bach-inv+sin *amuse-database*) ; FIXME: return an identifier.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 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)