Commit 47c6c415 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

About

parent 07effaf8
......@@ -2,12 +2,13 @@ import React, { useContext, useLayoutEffect, useRef, useCallback, useEffect } fr
import {ReactComponent as AboutSvg} from './about.svg'
import PropTypes from 'prop-types'
import Markdown from './Markdown'
import { appBase, optimadeBase, apiBase, debug, consent } from '../config'
import { appBase, optimadeBase, apiBase, debug, consent, aitoolkitEnabled, encyclopediaEnabled } from '../config'
import { apiContext } from './api'
import packageJson from '../../package.json'
import { domains } from './domains'
import { Grid, Card, CardContent, Typography, makeStyles, Link } from '@material-ui/core'
import { Link as RouterLink, useHistory } from 'react-router-dom'
import tutorials from './aitoolkit/tutorials'
export const CodeList = () => {
const {info} = useContext(apiContext)
......@@ -97,10 +98,18 @@ export default function About() {
history.push('/upload')
})
makeClickable('encyclopedia', () => {
window.location.href = 'https://encyclopedia.nomad-coe.eu/gui/#/search'
if (encyclopediaEnabled) {
window.location.href = `${appBase}/encyclopedia`
} else {
window.location.href = 'https://encyclopedia.nomad-coe.eu/gui/#/search'
}
})
makeClickable('analytics', () => {
window.location.href = 'https://nomad-lab.eu/AItutorials'
makeClickable('toolkit', () => {
if (aitoolkitEnabled) {
history.push('/aitoolkit')
} else {
window.location.href = 'https://nomad-lab.eu/tools/AItutorials'
}
})
makeClickable('search', () => {
history.push('/search')
......@@ -109,6 +118,7 @@ export default function About() {
useEffect(() => {
const statistics = (info && info.statistics) || {}
statistics.n_tutorials = tutorials.tutorials.length
const value = (key, unit) => {
const nominal = statistics[key]
let stringValue = null
......@@ -117,8 +127,10 @@ export default function About() {
stringValue = Math.floor(nominal / 1.0e+9) + ' bln.'
} else if (nominal >= 1.0e+6) {
stringValue = Math.floor(nominal / 1.0e+6) + ' mln.'
} else {
} else if (nominal >= 1.0e+3) {
stringValue = Math.floor(nominal / 1.0e+3) + ' tsd.'
} else {
stringValue = nominal.toString()
}
return `${stringValue || '...'} ${unit}`
} else {
......@@ -133,6 +145,12 @@ export default function About() {
value('n_calculations', 'results'),
value('n_quantities', 'quantities')
])
setText('encStats', [
value('n_materials', 'materials')
])
setText('toolkitStats', [
value('n_tutorials', 'notebooks')
])
}, [svg, info, setText])
return <div className={classes.root}>
......
......@@ -39,7 +39,7 @@ import {matomo} from '../index'
import { useCookies } from 'react-cookie'
import Markdown from './Markdown'
import { help as metainfoHelp, MetainfoPage } from './archive/MetainfoBrowser'
import AnalyticsPage from './analytics/AnalyticsPage'
import AIToolkitPage from './aitoolkit/AIToolkitPage'
export const ScrollContext = React.createContext({scrollParentRef: null})
......@@ -279,9 +279,9 @@ function MainMenu() {
icon={<UserDataIcon/>}
/>
{!oasis && aitoolkitEnabled && <MainMenuItem
title="Analytics"
path="/analytics"
tooltip="NOMAD's analytics (AI) toolkit tutorial jupyter notebooks"
title="AI Toolkit"
path="/aitoolkit"
tooltip="NOMAD's Artificial Intelligence Toolkit tutorial jupyter notebooks"
icon={<AnalyticsIcon/>}
/>}
<MainMenuItem
......@@ -559,9 +559,9 @@ const routes = {
path: '/metainfo',
component: MetainfoPage
},
'analytics': {
path: '/analytics',
component: AnalyticsPage
'aitoolkit': {
path: '/aitoolkit',
component: AIToolkitPage
}
}
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 1130 632" version="1.1" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g id="Artboard1" transform="matrix(1.10933,0,0,1.03856,-2.94,0)">
<svg width="100%" height="100%" viewBox="0 0 1130 643" version="1.1" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g id="Artboard1" transform="matrix(1.10933,0,0,1.0562,-2.94,0)">
<rect x="2.65" y="0" width="1018.16" height="608.36" style="fill:none;"/>
<g transform="matrix(0.901444,0,0,0.962871,2.64456,-0.352078)">
<path d="M927.126,246.844L960.764,227.423L958.264,223.092L922.126,243.957L927.126,246.844Z"/>
</g>
<g transform="matrix(0.907222,0,0,0.964223,0.245885,12.4654)">
<g transform="matrix(0.993631,0,0,0.998598,2.65025,0)">
<path d="M30.051,395.2L9,382.85L9,-9.946" style="fill:none;stroke:black;stroke-width:0.5px;"/>
<clipPath id="_clip1">
<rect x="2.65" y="0" width="1018.16" height="608.36"/>
</clipPath>
<g clip-path="url(#_clip1)">
<g transform="matrix(0.901444,0,0,0.946793,4.80392,8.02979)">
<path d="M729.794,14.858L475.275,161.805L472.775,157.475L729.794,9.085L823.721,63.313L821.221,67.644L729.794,14.858Z"/>
</g>
<g transform="matrix(0.993631,0,0,0.998598,2.65025,0)">
<path d="M570.5,154.635L570.5,-9.946" style="fill:none;stroke:black;stroke-width:0.5px;"/>
<g transform="matrix(0.901444,0,0,0.946793,2.65025,10.1583)">
<path d="M727.514,161.143L866.967,241.657L861.984,244.534L717.514,161.143L834.28,93.728L836.78,98.058L727.514,161.143Z"/>
</g>
<g transform="matrix(0.993631,0,0,0.998598,2.65025,0)">
<path d="M173.761,518.483L173.761,615.873" style="fill:none;stroke:black;stroke-width:0.5px;"/>
<g transform="matrix(0.901444,0,0,0.946793,2.64456,9.81211)">
<path d="M927.126,246.844L960.764,227.423L958.264,223.092L922.126,243.957L927.126,246.844Z"/>
</g>
<g transform="matrix(0.993631,0,0,0.998598,2.65025,0)">
<path d="M476.136,344.02L551.24,386.958L551.24,615.873" style="fill:none;stroke:black;stroke-width:0.5px;"/>
<g transform="matrix(0.907222,0,0,0.948123,0.245885,22.4155)">
<g transform="matrix(0.993631,0,0,1.02527,2.65025,-10.5415)">
<path d="M30.051,395.2L9,382.85L9,-9.946" style="fill:none;stroke:black;stroke-width:0.49px;"/>
</g>
<g transform="matrix(1.25077,0,0,1.2906,-102.959,-7.90252)">
<path d="M570.5,154.635L570.5,-9.946" style="fill:none;stroke:black;stroke-width:0.39px;"/>
</g>
<g transform="matrix(0.993631,0,0,0.998598,2.65025,0)">
<path d="M173.761,518.483L173.761,615.873" style="fill:none;stroke:black;stroke-width:0.5px;"/>
</g>
<g transform="matrix(0.993631,0,0,0.998598,2.65025,0)">
<path d="M476.136,344.02L551.24,386.958L551.24,615.873" style="fill:none;stroke:black;stroke-width:0.5px;"/>
</g>
<g transform="matrix(0.993631,0,0,0.998598,2.65025,0)">
<path d="M884.281,286.732L855.686,302.319L855.686,615.873" style="fill:none;stroke:black;stroke-width:0.5px;"/>
</g>
</g>
<g transform="matrix(0.993631,0,0,0.998598,2.65025,0)">
<path d="M884.281,286.732L855.686,302.319L855.686,615.873" style="fill:none;stroke:black;stroke-width:0.5px;"/>
<g transform="matrix(2.18207,0,0,2.29185,-379.833,-86.4269)">
<path d="M247.871,178.885L278.855,196.774" style="fill:none;stroke:black;stroke-width:2.07px;"/>
</g>
</g>
<g transform="matrix(2.18207,0,0,2.33077,-379.833,-98.2253)">
<path d="M247.871,178.885L278.855,196.774" style="fill:none;stroke:black;stroke-width:2.07px;"/>
</g>
<g transform="matrix(2.18207,0,0,2.33077,-379.833,-98.2253)">
<path d="M247.871,214.663L309.839,250.44L371.806,214.663L371.806,207.187L309.839,171.41L247.871,207.187L247.871,214.663Z" style="fill:rgb(123,31,162);"/>
</g>
<g transform="matrix(0.901444,0,0,0.962871,2.65025,0)">
<path d="M33.307,410.333L475.711,154.911L554.127,200.185L551.627,204.515L475.711,160.685L38.307,413.22L33.307,410.333Z"/>
</g>
<g transform="matrix(2.18207,0,0,2.33077,-93.2026,-255.503)">
<path d="M327.372,177.707L358.588,195.461L373.365,186.93L369.268,171.406L342.381,169.042L327.372,177.707Z" style="fill:white;stroke:black;stroke-width:0.83px;stroke-linecap:square;stroke-linejoin:miter;"/>
</g>
<g transform="matrix(2.18207,0,0,2.33077,-364.035,-88.4828)">
<path d="M327.35,177.72L358.566,195.474L395.044,174.413L390.948,158.89L364.06,156.525L327.35,177.72Z" style="fill:white;stroke:black;stroke-width:0.83px;stroke-linecap:square;stroke-linejoin:miter;"/>
</g>
<g transform="matrix(2.18207,0,0,2.33077,-634.471,78.2935)">
<path d="M325.331,178.885L356.547,196.64L395.044,174.413L390.948,158.89L364.06,156.525L325.331,178.885Z" style="fill:white;stroke:black;stroke-width:0.83px;stroke-linecap:square;stroke-linejoin:miter;"/>
</g>
<g transform="matrix(0.901444,0,0,0.962871,2.65025,0)">
<path d="M858.552,280.292L863.552,283.179L475.711,507.099L397.295,461.826L399.795,457.496L475.711,501.326L858.552,280.292Z"/>
</g>
<g transform="matrix(2.18207,0,0,2.33077,-379.833,-98.2253)">
<path d="M453.475,154.483L495.742,178.885" style="fill:none;stroke:black;stroke-width:2.07px;stroke-linecap:butt;stroke-linejoin:miter;"/>
</g>
<g transform="matrix(2.18207,0,0,2.33077,-379.833,-98.2253)">
<path d="M371.806,143.108L433.774,178.885L495.742,143.108L495.742,135.633L433.774,99.856L371.806,135.633L371.806,143.108Z" style="fill:rgb(0,121,107);"/>
</g>
<g transform="matrix(2.18207,0,0,2.33077,-155.002,-236.877)">
<path d="M371.806,143.108L420.589,171.273L482.557,135.496L433.774,107.331L371.806,143.108Z" style="fill:white;"/>
<path d="M371.806,143.108L420.589,171.273L482.557,135.496L433.774,107.331L371.806,143.108ZM374.698,143.108L420.589,169.603L479.665,135.496L433.774,109.001L374.698,143.108Z" style="fill:rgb(255,160,0);"/>
</g>
<g transform="matrix(2.18207,0,0,2.33077,-8.44069,-146.493)">
<path d="M360.54,136.604L409.439,164.836L471.407,129.059L422.508,100.827L360.54,136.604Z" style="fill:white;"/>
<path d="M360.54,136.604L409.439,164.836L471.407,129.059L422.508,100.827L360.54,136.604ZM363.432,136.604L409.439,163.166L468.515,129.059L422.508,102.496L363.432,136.604Z" style="fill:rgb(104,159,56);"/>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-573.463,373.612)">
<text x="280px" y="325.975px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:rgb(235,235,235);">repository</text>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-667.812,315.428)">
<text id="repositoryStats" x="280px" y="322.821px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:9.5px;fill:rgb(235,235,235);">repository stats</text>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-396.817,148.307)">
<text id="archiveStats" x="280px" y="322.821px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:9.5px;fill:rgb(235,235,235);">archiv<tspan x="303.76px " y="322.821px ">e</tspan> stats</text>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-468.236,267.591)">
<text x="280px" y="324.526px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:11.875px;">pr<tspan x="290.248px " y="324.526px ">o</tspan>cessing</text>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-739.332,434.774)">
<text x="280px" y="324.526px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:11.875px;">upload</text>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-832.377,312.429)">
<text x="280px" y="324.526px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:11.875px;">explor<tspan x="310.578px " y="324.526px ">e</tspan></text>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-137.471,252.988)">
<text x="320.14px" y="325.332px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:11.875px;">API</text>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-302.653,206.605)">
<text x="280px" y="325.975px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:rgb(235,235,235);">archive</text>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-129.166,51.5201)">
<text x="280px" y="344.745px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:rgb(255,160,0);">ency<tspan x="308.514px " y="344.745px ">c</tspan>lopedia</text>
</g>
<g transform="matrix(1.31481,-0.810834,1.51821,0.93627,-6.53093,127.148)">
<text x="280px" y="330.495px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:rgb(104,159,56);">analytics (AI)</text>
<text x="280px" y="344.745px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:rgb(104,159,56);">toolkit</text>
</g>
<g transform="matrix(35.0386,0,0,37.4262,112.044,587.392)">
<path d="M0.232,-0.65C0.249,-0.633 0.269,-0.625 0.291,-0.625C0.313,-0.625 0.333,-0.633 0.35,-0.65C0.367,-0.667 0.375,-0.687 0.375,-0.709C0.375,-0.731 0.367,-0.75 0.35,-0.767C0.333,-0.783 0.313,-0.791 0.291,-0.791C0.269,-0.791 0.25,-0.783 0.233,-0.767C0.217,-0.75 0.209,-0.731 0.209,-0.709C0.209,-0.687 0.217,-0.667 0.232,-0.65ZM0.834,-0.875C0.846,-0.875 0.855,-0.871 0.863,-0.863C0.871,-0.855 0.875,-0.846 0.875,-0.834L0.875,-0.584C0.875,-0.572 0.871,-0.562 0.863,-0.554C0.855,-0.545 0.846,-0.541 0.834,-0.541L0.166,-0.541C0.154,-0.541 0.145,-0.545 0.137,-0.554C0.129,-0.562 0.125,-0.572 0.125,-0.584L0.125,-0.834C0.125,-0.846 0.129,-0.855 0.137,-0.863C0.145,-0.871 0.154,-0.875 0.166,-0.875L0.834,-0.875ZM0.232,-0.232C0.249,-0.217 0.269,-0.209 0.291,-0.209C0.313,-0.209 0.333,-0.217 0.35,-0.233C0.367,-0.25 0.375,-0.269 0.375,-0.291C0.375,-0.313 0.367,-0.333 0.35,-0.35C0.333,-0.367 0.313,-0.375 0.291,-0.375C0.269,-0.375 0.25,-0.367 0.233,-0.35C0.217,-0.333 0.209,-0.313 0.209,-0.291C0.209,-0.269 0.217,-0.249 0.232,-0.232ZM0.834,-0.459C0.846,-0.459 0.855,-0.455 0.863,-0.446C0.871,-0.438 0.875,-0.428 0.875,-0.416L0.875,-0.166C0.875,-0.154 0.871,-0.145 0.863,-0.137C0.855,-0.129 0.846,-0.125 0.834,-0.125L0.166,-0.125C0.154,-0.125 0.145,-0.129 0.137,-0.137C0.129,-0.145 0.125,-0.154 0.125,-0.166L0.125,-0.416C0.125,-0.428 0.129,-0.438 0.137,-0.446C0.145,-0.455 0.154,-0.459 0.166,-0.459L0.834,-0.459Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(38.6852,0,0,41.3214,-1.17035,435.446)">
<path d="M0.264,-0.471C0.3,-0.434 0.344,-0.416 0.396,-0.416C0.449,-0.416 0.493,-0.434 0.529,-0.471C0.566,-0.507 0.584,-0.551 0.584,-0.604C0.584,-0.656 0.566,-0.7 0.529,-0.736C0.493,-0.773 0.449,-0.791 0.396,-0.791C0.344,-0.791 0.3,-0.773 0.264,-0.736C0.227,-0.7 0.209,-0.656 0.209,-0.604C0.209,-0.551 0.227,-0.507 0.264,-0.471ZM0.646,-0.416L0.854,-0.209L0.791,-0.146L0.584,-0.354L0.584,-0.387L0.572,-0.398C0.523,-0.355 0.464,-0.334 0.396,-0.334C0.321,-0.334 0.257,-0.36 0.204,-0.412C0.151,-0.464 0.125,-0.528 0.125,-0.604C0.125,-0.679 0.151,-0.743 0.204,-0.796C0.257,-0.849 0.321,-0.875 0.396,-0.875C0.472,-0.875 0.536,-0.849 0.588,-0.796C0.64,-0.743 0.666,-0.679 0.666,-0.604C0.666,-0.536 0.645,-0.477 0.602,-0.428L0.613,-0.416L0.646,-0.416Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(0.907222,0,0,1,0.245885,0)">
<g id="search" transform="matrix(0.993631,0,0,0.962871,2.65025,0)">
<path d="M0,412.944L17.195,395.308L76.244,360.184L96.747,377.857L34.39,413.859L34.39,448.142L0,448.142L0,412.944Z" style="fill:white;fill-opacity:0;"/>
<g transform="matrix(2.18207,0,0,2.29185,-379.833,-86.4269)">
<path d="M247.871,214.663L309.839,250.44L371.806,214.663L371.806,207.187L309.839,171.41L247.871,207.187L247.871,214.663Z" style="fill:rgb(123,31,162);"/>
</g>
<g id="upload" transform="matrix(2.40523,0,0,2.33077,-698.41,78.9745)">
<path d="M325.331,178.885L356.547,196.64L395.044,174.413L390.948,158.89L364.06,156.525L325.331,178.885Z" style="fill:white;fill-opacity:0;"/>
<g transform="matrix(0.901444,0,0,0.946793,2.65025,10.1583)">
<path d="M33.307,410.333L475.711,154.911L554.127,200.185L551.627,204.515L475.711,160.685L38.307,413.22L33.307,410.333Z"/>
</g>
<g id="encyclopedia" transform="matrix(2.40523,0,0,2.33077,-171.125,-236.877)">
<path d="M371.806,143.108L420.769,171.377L482.737,135.6L433.774,107.331L371.806,143.108Z" style="fill:white;fill-opacity:0;"/>
<g transform="matrix(2.18207,0,0,2.29185,-364.035,-76.847)">
<path d="M334.92,182.002L350.44,190.782L386.918,169.722L390.144,158.425L371.63,160.807L334.92,182.002Z" style="stroke:white;stroke-width:0.83px;stroke-linecap:square;stroke-linejoin:miter;"/>
</g>
<g id="analytics" transform="matrix(2.40523,0,0,2.33077,-21.8533,-153.363)">
<path d="M365.21,139.3L414.822,167.943L476.79,132.166L427.178,103.523L365.21,139.3Z" style="fill:white;fill-opacity:0;"/>
<g transform="matrix(2.18207,0,0,2.29185,-634.471,87.1444)">
<path d="M332.901,183.168L348.421,191.948L386.918,169.722L390.144,158.425L371.63,160.807L332.901,183.168Z" style="stroke:white;stroke-width:0.83px;stroke-linecap:square;stroke-linejoin:miter;"/>
</g>
<g id="api" transform="matrix(0.993631,0,0,0.962871,2.65025,0)">
<path d="M858.874,315.909L833.39,301.196L869.409,280.401L869.409,242.554L922.903,242.554L922.903,276.811L887.712,297.128L858.874,315.909Z" style="fill:white;fill-opacity:0;"/>
<g transform="matrix(0.901444,0,0,0.946793,2.65025,10.1583)">
<path d="M858.552,280.292L863.552,283.179L475.711,507.099L397.295,461.826L399.795,457.496L475.711,501.326L858.552,280.292Z"/>
</g>
<g transform="matrix(2.18207,0,0,2.29185,-379.833,-86.4269)">
<path d="M453.475,154.483L495.742,178.885" style="fill:none;stroke:black;stroke-width:2.07px;stroke-linecap:butt;stroke-linejoin:miter;"/>
</g>
<g transform="matrix(2.18207,0,0,2.29185,-379.833,-86.4269)">
<path d="M371.806,143.108L433.774,178.885L495.742,143.108L495.742,135.633L433.774,99.856L371.806,135.633L371.806,143.108Z" style="fill:rgb(0,121,107);"/>
</g>
<g transform="matrix(2.18207,0,0,2.29185,-161.861,-218.406)">
<path d="M371.806,143.108L420.589,171.187L482.557,135.409L482.557,127.934L433.774,99.856L371.806,135.633L371.806,143.108Z" style="fill:rgb(255,179,0);"/>
</g>
<g transform="matrix(2.18207,0,0,2.29185,-32.4192,-139.913)">
<path d="M371.806,143.108L420.589,171.187L482.557,135.409L482.557,127.934L433.774,99.856L371.806,135.633L371.806,143.108Z" style="fill:rgb(124,179,66);"/>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-596.364,363.645)">
<text x="280px" y="344.745px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:rgb(235,235,235);">repository</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-667.812,320.32)">
<text id="repositoryStats" x="280px" y="322.821px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:9.5px;fill:rgb(235,235,235);">repository stats</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-396.817,155.989)">
<text id="archiveStats" x="280px" y="322.821px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:9.5px;fill:rgb(235,235,235);">archiv<tspan x="303.76px " y="322.821px ">e</tspan> stats</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-177.867,23.2191)">
<text id="encStats" x="280px" y="322.821px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:9.5px;fill:rgb(235,235,235);">encyclopedia stats</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-48.2806,101.8)">
<text id="toolkitStats" x="280px" y="322.821px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:9.5px;fill:rgb(235,235,235);">ai toolkit stats</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-468.236,273.281)">
<text x="280px" y="324.526px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:11.875px;fill:white;">pr<tspan x="290.248px " y="324.526px ">o</tspan>cessing</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-739.332,437.673)">
<text x="280px" y="324.526px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:11.875px;fill:white;">upload</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-832.377,317.37)">
<text x="280px" y="324.526px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:11.875px;">explor<tspan x="310.578px " y="324.526px ">e</tspan></text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-137.471,258.922)">
<text x="320.14px" y="325.332px" style="font-family:'TitilliumWeb-Regular', 'Titillium Web';font-size:11.875px;">API</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-325.553,199.427)">
<text x="280px" y="344.745px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:rgb(235,235,235);">archive</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-135.371,48.9883)">
<text x="280px" y="344.745px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:white;">ency<tspan x="308.514px " y="344.745px ">c</tspan>lopedia</text>
</g>
<g transform="matrix(1.31481,-0.797294,1.51821,0.920636,-36.3098,109.059)">
<text x="280px" y="336.589px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:white;">artificial</text>
<text x="280px" y="350.839px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:white;">intelligence</text>
<text x="280px" y="365.089px" style="font-family:'TitilliumWeb-Bold', 'Titillium Web';font-weight:700;font-size:14.25px;fill:white;">toolkit</text>
</g>
<g transform="matrix(35.0386,0,0,36.8013,112.044,587.742)">
<path d="M0.232,-0.65C0.249,-0.633 0.269,-0.625 0.291,-0.625C0.313,-0.625 0.333,-0.633 0.35,-0.65C0.367,-0.667 0.375,-0.687 0.375,-0.709C0.375,-0.731 0.367,-0.75 0.35,-0.767C0.333,-0.783 0.313,-0.791 0.291,-0.791C0.269,-0.791 0.25,-0.783 0.233,-0.767C0.217,-0.75 0.209,-0.731 0.209,-0.709C0.209,-0.687 0.217,-0.667 0.232,-0.65ZM0.834,-0.875C0.846,-0.875 0.855,-0.871 0.863,-0.863C0.871,-0.855 0.875,-0.846 0.875,-0.834L0.875,-0.584C0.875,-0.572 0.871,-0.562 0.863,-0.554C0.855,-0.545 0.846,-0.541 0.834,-0.541L0.166,-0.541C0.154,-0.541 0.145,-0.545 0.137,-0.554C0.129,-0.562 0.125,-0.572 0.125,-0.584L0.125,-0.834C0.125,-0.846 0.129,-0.855 0.137,-0.863C0.145,-0.871 0.154,-0.875 0.166,-0.875L0.834,-0.875ZM0.232,-0.232C0.249,-0.217 0.269,-0.209 0.291,-0.209C0.313,-0.209 0.333,-0.217 0.35,-0.233C0.367,-0.25 0.375,-0.269 0.375,-0.291C0.375,-0.313 0.367,-0.333 0.35,-0.35C0.333,-0.367 0.313,-0.375 0.291,-0.375C0.269,-0.375 0.25,-0.367 0.233,-0.35C0.217,-0.333 0.209,-0.313 0.209,-0.291C0.209,-0.269 0.217,-0.249 0.232,-0.232ZM0.834,-0.459C0.846,-0.459 0.855,-0.455 0.863,-0.446C0.871,-0.438 0.875,-0.428 0.875,-0.416L0.875,-0.166C0.875,-0.154 0.871,-0.145 0.863,-0.137C0.855,-0.129 0.846,-0.125 0.834,-0.125L0.166,-0.125C0.154,-0.125 0.145,-0.129 0.137,-0.137C0.129,-0.145 0.125,-0.154 0.125,-0.166L0.125,-0.416C0.125,-0.428 0.129,-0.438 0.137,-0.446C0.145,-0.455 0.154,-0.459 0.166,-0.459L0.834,-0.459Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(38.6852,0,0,40.6314,-1.17035,438.333)">
<path d="M0.264,-0.471C0.3,-0.434 0.344,-0.416 0.396,-0.416C0.449,-0.416 0.493,-0.434 0.529,-0.471C0.566,-0.507 0.584,-0.551 0.584,-0.604C0.584,-0.656 0.566,-0.7 0.529,-0.736C0.493,-0.773 0.449,-0.791 0.396,-0.791C0.344,-0.791 0.3,-0.773 0.264,-0.736C0.227,-0.7 0.209,-0.656 0.209,-0.604C0.209,-0.551 0.227,-0.507 0.264,-0.471ZM0.646,-0.416L0.854,-0.209L0.791,-0.146L0.584,-0.354L0.584,-0.387L0.572,-0.398C0.523,-0.355 0.464,-0.334 0.396,-0.334C0.321,-0.334 0.257,-0.36 0.204,-0.412C0.151,-0.464 0.125,-0.528 0.125,-0.604C0.125,-0.679 0.151,-0.743 0.204,-0.796C0.257,-0.849 0.321,-0.875 0.396,-0.875C0.472,-0.875 0.536,-0.849 0.588,-0.796C0.64,-0.743 0.666,-0.679 0.666,-0.604C0.666,-0.536 0.645,-0.477 0.602,-0.428L0.613,-0.416L0.646,-0.416Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(0.907222,0,0,0.983302,0.245885,10.1583)">
<g id="search" transform="matrix(0.993631,0,0,0.962871,2.65025,0)">
<path d="M0,412.944L17.195,395.308L76.244,360.184L96.747,377.857L34.39,413.859L34.39,448.142L0,448.142L0,412.944Z" style="fill:white;fill-opacity:0;"/>
</g>
<g id="upload" transform="matrix(2.40523,0,0,2.33077,-698.41,78.9745)">
<path d="M325.331,178.885L356.547,196.64L395.044,174.413L390.948,158.89L364.06,156.525L325.331,178.885Z" style="fill:white;fill-opacity:0;"/>
</g>
<g id="encyclopedia" transform="matrix(2.40523,0,0,2.33077,-178.719,-250.269)">
<path d="M371.806,143.108L420.769,171.377L482.737,135.6L433.774,107.331L371.806,143.108Z" style="fill:white;fill-opacity:0;"/>
</g>
<g id="toolkit" transform="matrix(2.40523,0,0,2.33077,-20.7432,-162.081)">
<path d="M365.21,139.3L414.822,167.943L476.79,132.166L427.178,103.523L365.21,139.3Z" style="fill:white;fill-opacity:0;"/>
</g>
<g id="api" transform="matrix(0.993631,0,0,0.962871,2.65025,0)">
<path d="M858.874,315.909L833.39,301.196L869.409,280.401L869.409,242.554L922.903,242.554L922.903,276.811L887.712,297.128L858.874,315.909Z" style="fill:white;fill-opacity:0;"/>
</g>
</g>
<g transform="matrix(35.0386,0,0,36.8013,69.3381,560.079)">
<path d="M0.834,-0.375L0.834,-0.791L0.166,-0.791L0.166,-0.375L0.834,-0.375ZM0.584,-0.25L0.584,-0.291L0.416,-0.291L0.416,-0.25L0.584,-0.25ZM0.916,-0.25L1,-0.25L1,-0.166L0,-0.166L0,-0.25L0.084,-0.25L0.084,-0.875L0.916,-0.875L0.916,-0.25Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(35.0386,0,0,36.8013,792.965,275.883)">
<path d="M0.834,-0.375L0.834,-0.791L0.166,-0.791L0.166,-0.375L0.834,-0.375ZM0.584,-0.25L0.584,-0.291L0.416,-0.291L0.416,-0.25L0.584,-0.25ZM0.916,-0.25L1,-0.25L1,-0.166L0,-0.166L0,-0.25L0.084,-0.25L0.084,-0.875L0.916,-0.875L0.916,-0.25Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(35.0386,0,0,36.8013,29.7411,529.218)">
<path d="M0.279,-0.369C0.356,-0.4 0.43,-0.416 0.5,-0.416C0.57,-0.416 0.644,-0.401 0.72,-0.37C0.796,-0.34 0.834,-0.299 0.834,-0.25L0.834,-0.166L0.166,-0.166L0.166,-0.25C0.166,-0.299 0.204,-0.339 0.279,-0.369ZM0.617,-0.549C0.585,-0.516 0.546,-0.5 0.5,-0.5C0.454,-0.5 0.415,-0.516 0.383,-0.549C0.35,-0.581 0.334,-0.62 0.334,-0.666C0.334,-0.712 0.35,-0.751 0.383,-0.784C0.415,-0.817 0.454,-0.834 0.5,-0.834C0.546,-0.834 0.585,-0.817 0.617,-0.784C0.65,-0.751 0.666,-0.712 0.666,-0.666C0.666,-0.62 0.65,-0.581 0.617,-0.549Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(1.51821,0,0,1.59459,-137.43,-420.642)">
<path d="M552.85,404.535L552.85,415.278L463.786,466.7L463.786,455.956L552.85,404.535Z" style="fill:rgb(0,76,64);"/>
</g>
<g transform="matrix(1.51821,0,0,1.59459,51.77,-570.266)">
<path d="M552.85,404.535L552.85,415.278L463.786,466.7L463.786,455.956L552.85,404.535Z" style="fill:rgb(255,111,0);"/>
</g>
<g transform="matrix(1.51821,0,0,1.59459,181.468,-491.618)">
<path d="M552.85,404.535L552.85,415.278L463.786,466.7L463.786,455.956L552.85,404.535Z" style="fill:rgb(51,105,30);"/>
</g>
<g transform="matrix(1.51821,0,0,1.59459,-407.531,-256.447)">
<path d="M552.629,404.407L552.629,415.151L463.786,466.7L463.786,455.956L552.629,404.407Z" style="fill:rgb(74,0,114);"/>
</g>
<g transform="matrix(1.51821,0,0,1.59459,-137.43,-420.642)">
<path d="M463.786,466.7L374.722,415.278L374.722,404.535L463.786,455.956L463.786,466.7Z" style="fill:rgb(72,169,153);"/>
</g>
<g transform="matrix(1.51821,0,0,1.59459,80.5414,-552.819)">
<path d="M444.835,455.758L374.722,415.278L374.722,404.535L444.835,445.015L444.835,455.758Z" style="fill:rgb(255,213,79);"/>
</g>
<g transform="matrix(1.51821,0,0,1.59459,210.076,-474.072)">
<path d="M444.835,455.758L374.722,415.278L374.722,404.535L444.835,445.015L444.835,455.758Z" style="fill:rgb(174,213,129);"/>
</g>
<g transform="matrix(1.51821,0,0,1.59459,-407.531,-256.447)">
<path d="M463.786,466.7L374.501,415.151L374.501,404.407L463.786,455.956L463.786,466.7Z" style="fill:rgb(174,82,212);"/>
</g>
</g>
<g transform="matrix(35.0386,0,0,37.4262,69.3381,559.259)">
<path d="M0.834,-0.375L0.834,-0.791L0.166,-0.791L0.166,-0.375L0.834,-0.375ZM0.584,-0.25L0.584,-0.291L0.416,-0.291L0.416,-0.25L0.584,-0.25ZM0.916,-0.25L1,-0.25L1,-0.166L0,-0.166L0,-0.25L0.084,-0.25L0.084,-0.875L0.916,-0.875L0.916,-0.25Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(35.0386,0,0,37.4262,792.965,270.237)">
<path d="M0.834,-0.375L0.834,-0.791L0.166,-0.791L0.166,-0.375L0.834,-0.375ZM0.584,-0.25L0.584,-0.291L0.416,-0.291L0.416,-0.25L0.584,-0.25ZM0.916,-0.25L1,-0.25L1,-0.166L0,-0.166L0,-0.25L0.084,-0.25L0.084,-0.875L0.916,-0.875L0.916,-0.25Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(35.0386,0,0,37.4262,29.7411,527.874)">
<path d="M0.279,-0.369C0.356,-0.4 0.43,-0.416 0.5,-0.416C0.57,-0.416 0.644,-0.401 0.72,-0.37C0.796,-0.34 0.834,-0.299 0.834,-0.25L0.834,-0.166L0.166,-0.166L0.166,-0.25C0.166,-0.299 0.204,-0.339 0.279,-0.369ZM0.617,-0.549C0.585,-0.516 0.546,-0.5 0.5,-0.5C0.454,-0.5 0.415,-0.516 0.383,-0.549C0.35,-0.581 0.334,-0.62 0.334,-0.666C0.334,-0.712 0.35,-0.751 0.383,-0.784C0.415,-0.817 0.454,-0.834 0.5,-0.834C0.546,-0.834 0.585,-0.817 0.617,-0.784C0.65,-0.751 0.666,-0.712 0.666,-0.666C0.666,-0.62 0.65,-0.581 0.617,-0.549Z" style="fill-rule:nonzero;"/>
</g>
<g transform="matrix(1.51821,0,0,1.62167,-137.43,-438.116)">
<path d="M552.85,404.535L552.85,415.278L463.786,466.7L463.786,455.956L552.85,404.535Z" style="fill:rgb(0,76,64);"/>
</g>
<g transform="matrix(1.51821,0,0,1.62167,-407.531,-271.133)">
<path d="M552.629,404.407L552.629,415.151L463.786,466.7L463.786,455.956L552.629,404.407Z" style="fill:rgb(74,0,114);"/>
</g>
<g transform="matrix(1.51821,0,0,1.62167,-137.43,-438.116)">
<path d="M463.786,466.7L374.722,415.278L374.722,404.535L463.786,455.956L463.786,466.7Z" style="fill:rgb(72,169,153);"/>
</g>
<g transform="matrix(1.51821,0,0,1.62167,-407.531,-271.133)">
<path d="M463.786,466.7L374.501,415.151L374.501,404.407L463.786,455.956L463.786,466.7Z" style="fill:rgb(174,82,212);"/>
</g>
</g>
</svg>
......@@ -41,7 +41,7 @@ const useStyles = makeStyles(theme => ({
}
}))
export default function AnalyticsPage() {
export default function AIToolkitPage() {
const classes = useStyles()
const [expanded, setExpanded] = useQueryParam('expanded', StringParam)
const [queryParameters, setQueryParameters] = useQueryParams({
......@@ -96,12 +96,12 @@ export default function AnalyticsPage() {
return <Grid container spacing={2} className={classes.root}>
<Grid item xs={12}>
<Markdown>{`
# NOMAD Analytics (AI) Toolkit
# NOMAD Artificial Intelligence Toolkit
We develop and implement methods that identify correlations and structure in big data
of materials. This will enable scientists and engineers to decide which materials are
useful for specific applications or which new materials should be the focus of future studies.
The following tutorials are designed to get started with the Analytics Toolkit.
The following tutorials are designed to get started with the AI Toolkit.
To log in directly, click [here](https://analytics-toolkit.nomad-coe.eu/hub).
`}</Markdown>
......
......@@ -50,6 +50,7 @@ statistics_info_model = api.model('StatisticsInfo', {
'n_uploads': fields.Integer(description='Number of uploads in NOMAD'),
'n_quantities': fields.Integer(description='Accumulated number of quantities over all entries in the Archive'),
'n_calculations': fields.Integer(description='Accumulated number of calculations, e.g. total energy calculations in the Archive'),
'n_materials': fields.Integer(description='Number of materials in NOMAD')
# TODO
# 'raw_file_size': fields.Integer(description='Total amount of raw files in TB'),
# 'archive_file_size': fields.Integer(description='Total amount of binary archive data in TB')
......
......@@ -513,6 +513,8 @@ class SearchRequest:
'global_statistics:n_calculations', A('sum', field='dft.n_calculations'))
self._search.aggs.metric(
'global_statistics:n_quantities', A('sum', field='dft.n_quantities'))
self._search.aggs.metric(
'global_statistics:n_materials', A('cardinality', field='encyclopedia.material.material_id'))
return self
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment