Skip to content

Commit

Permalink
More fixes here and there.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepe-Marquez committed May 16, 2024
1 parent 75093a2 commit 9bc2046
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 10 deletions.
8 changes: 4 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
site_name: nomad-solar-cells-efficiency-tables
site_description: This is a schema package to digitiz solar
site_author: Pepe Marquez
site_name: nomad-perovskite-solar-cells-database
site_description: This is a NOMAD plugin for the perovskite solar cells database.

repo_url: https://github.com/Pepe-Marquez/nomad-solar-cells-efficiency-tables

repo_url: https://github.com/FAIRmat-NFDI/nomad-perovskite-solar-cells-database

nav:
- Home: index.md
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,46 @@
from typing import (
TYPE_CHECKING,
)

from nomad.datamodel.data import EntryData, UseCaseElnCategory
if TYPE_CHECKING:
from nomad.datamodel.datamodel import (
EntryArchive,
)
from structlog.stdlib import (
BoundLogger,
)

from .schema_sections import Ref, Cell, Module, Substrate, ETL, Perovskite, PerovskiteDeposition, HTL, Backcontact, Add, Encapsulation, JV, Stabilised, EQE, Stability, Outdoor
from nomad.metainfo import Package, Section, SubSection
from nomad.datamodel.data import UseCaseElnCategory
from nomad.config import config
from nomad.datamodel.data import Schema
from .schema_sections import (
Ref,
Cell,
Module,
Substrate,
ETL,
Perovskite,
PerovskiteDeposition,
HTL,
Backcontact,
Add,
Encapsulation,
JV,
Stabilised,
EQE,
Stability,
Outdoor,
)
from nomad.metainfo import Package, Section, SubSection, SchemaPackage

configuration = config.get_plugin_entry_point(
'perovskite_solar_cell_database.schema_packages:perovskite_solar_cell_database'
)

m_package = Package(name='perovskite_solar_cell_database')
m_package = SchemaPackage()


class PerovskiteSolarCell(EntryData):
class PerovskiteSolarCell(Schema):
"""
This schema is adapted to map the data in the [Perovskite Solar Cell Database
Project](https://www.perovskitedatabase.com/). The descriptions in the quantities
Expand All @@ -18,7 +50,8 @@ class PerovskiteSolarCell(EntryData):
m_def = Section(
label='Perovskite Solar Cell',
a_eln=dict(lane_width='400px'),
categories=[UseCaseElnCategory])
categories=[UseCaseElnCategory],
)

ref = SubSection(section_def=Ref)
cell = SubSection(section_def=Cell)
Expand Down

0 comments on commit 9bc2046

Please sign in to comment.