12.07.2015 Views

The Computational Materials Repository

The Computational Materials Repository

The Computational Materials Repository

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

44 Introduction and usage of CMRmember3 = cmr . read ( ’ 3 . db ’ )group = cmr . c r e a t e g r o u p ( )group . add ( member1 )group . add ( member2 )group . add ( member3 )group . w r i t e ( ’ group . db ’ )and the second one references them:import cmrmember1 = cmr . read ( ’ 1 . db ’ )member2 = cmr . read ( ’ 2 . db ’ )member3 = cmr . read ( ’ 3 . db ’ )group = cmr . c r e a t e g r o u p ( )group . add ( member1 . g e t h a s h ( ) )group . add ( member2 . g e t h a s h ( ) )group . add ( member3 . g e t h a s h ( ) )group . w r i t e ( ’ g r o u p r e f . db ’ )2.8 What is actually stored in a db-file?In this section the content of a db-file shall be discussed. Note however that thissection covers only the information needed by a user to work with the db-filesand more details can be found in 3.3.3.2.As shown earlier the data contained in a db-file can be viewed with thecommand-line interface command -d:cmr −d N2 . db<strong>The</strong> content of the db-files depends on what the type of the original file was.Nevertheless there are a few fields that are always contained. <strong>The</strong>ir names startwith “db ” in order to prevent conflicts with possible custom fields.field name sample valuedb calculator ase trajectory itemdb date 2011-12-12 12:15:54.741326db last modified 2011-12-12 12:15:54.745658db hash 356932ea2d6bac7d6433bab8526...db location CAMD Physics, DTUdb userdlandisdb keywords [’EMT’,’N’]db description Calculated N2 molecule with ASE.db script [’N2.py’]db files[’N2.log’]Figure 2.23: Fields that are always present in every db-file.<strong>The</strong> meaning of the fields in Fig. 2.23 are as follows: the db calculator fielddefines the original calculator, other examples besides ase trajectory item are

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!