10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 05:43:46 +01:00

Support the new article metadata in datafileBuilder

This commit is contained in:
Mickaël Véril 2020-09-10 09:36:07 +02:00
parent 1a9198082b
commit 5c1e1b501d

View File

@ -53,7 +53,7 @@ class dataFileBase(object):
self.code = None self.code = None
self.method = None self.method = None
self.excitations = [] self.excitations = []
self.DOI = '' self.article = ''
@property @property
def IsTBE(self): def IsTBE(self):
@ -102,7 +102,7 @@ class dataFileBase(object):
dic["Comment"]=self.comment dic["Comment"]=self.comment
dic["code"]="" if self.code is None else self.code.toDataString() dic["code"]="" if self.code is None else self.code.toDataString()
dic["method"]="" if self.method is None else self.method.toDataString() dic["method"]="" if self.method is None else self.method.toDataString()
dic["DOI"]="" if self.DOI is None else self.DOI dic["article"]="" if self.article is None else self.article
return dic return dic
def toFile(self,datadir,suffix=None): def toFile(self,datadir,suffix=None):