Skip to content
Snippets Groups Projects
Commit 32a10acd authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Integrated the aptfim parser.

parent 87c902d9
No related branches found
No related tags found
1 merge request!44Latest fixes.
Pipeline #48112 passed
Subproject commit c0e936246972c0fb98b9b9c96a67167f1725156f
Subproject commit 95b3874b72035d0529f7dd0cde419192dba68100
Subproject commit ef3fe75d150b13d35abc5d9af9555708fbf3903f
Subproject commit e772c6d954009d7b3419200ffd370f55fd62c1a4
......@@ -141,7 +141,7 @@ class DomainProviderBase extends React.Component {
},
experiment_time: {
label: 'Date/Time',
render: time => new Date(time * 1000).toLocaleString()
render: time => time !== 'unavailable' ? new Date(time * 1000).toLocaleString() : time
}
},
/**
......
......@@ -26,19 +26,21 @@ export default class EMSEntryOverview extends React.Component {
return (
<Quantity column>
<Quantity quantity="experiment_summary" label="summary" noWrap {...this.props} />
<Quantity quantity="experiment_summary" label="summary" {...this.props} />
<Quantity row>
<Quantity column>
<Quantity row>
<Quantity quantity="formula" label="sample formula" noWrap {...this.props} />
<Quantity quantity="chemical" label="sample chemical" noWrap {...this.props} />
{data.chemical !== 'unavailable'
? <Quantity quantity="chemical" label="sample chemical" noWrap {...this.props} />
: ''}
</Quantity>
<Quantity quantity="method" label="experimental method" noWrap {...this.props} />
<Quantity quantity="experiment_location" label="experiment location" noWrap {...this.props} />
<Quantity label="experiment time" {...this.props}>
<Typography noWrap>
{new Date(data.experiment_time * 1000).toLocaleString()}
</Typography>
<Typography noWrap>{
data.experiment_time !== 'unavailable' ? new Date(data.experiment_time * 1000).toLocaleString() : 'unavailable'
}</Typography>
</Quantity>
<Quantity label="data" {...this.props}>
<Typography noWrap>
......
......@@ -371,6 +371,12 @@ parsers = [
parser_class_name='mpesparser.MPESParserInterface',
mainfile_mime_re=r'(application/json)|(text/.*)',
mainfile_name_re=(r'.*_data.meta')
),
LegacyParser(
name='parsers/aptfim', code_name='mpes', domain='EMS',
parser_class_name='aptfimparser.APTFIMParserInterface',
mainfile_mime_re=r'(application/json)|(text/.*)',
mainfile_name_re=(r'.*.aptfim')
)
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment