Skip to content

Commit

Permalink
Merge pull request #41 from FAIRmat-NFDI/18-new-search-apps
Browse files Browse the repository at this point in the history
Adding a new search app with specific filter for the Perovskite Database entries
  • Loading branch information
hampusnasstrom authored Dec 13, 2024
2 parents 06c9272 + 85f7d16 commit 1fa1930
Show file tree
Hide file tree
Showing 13 changed files with 690 additions and 16 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ where = ["src"]
[project.entry-points.'nomad.plugin']
perovskite_solar_cell = "perovskite_solar_cell_database:perovskite_solar_cell"
solar_cell_app = "perovskite_solar_cell_database.apps:solar_cells"
perovskite_solar_cell_database_app = "perovskite_solar_cell_database.apps:perovskite_solar_cell_database_app"
perovskite_composition = "perovskite_solar_cell_database:perovskite_composition"
ion_parser = "perovskite_solar_cell_database:ion_parser"
perovskite_ions_app = "perovskite_solar_cell_database.apps:perovskite_ions"
11 changes: 11 additions & 0 deletions src/perovskite_solar_cell_database/apps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from nomad.config.models.plugins import AppEntryPoint

from perovskite_solar_cell_database.apps.perovskite_ions_app import perovskite_ions_app
from perovskite_solar_cell_database.apps.perovskite_solar_cell_database_app import (
perovskite_database_app,
)
from perovskite_solar_cell_database.apps.solar_cell_app import solar_cell_app

solar_cells = AppEntryPoint(
Expand All @@ -14,6 +17,14 @@
app=solar_cell_app,
)

perovskite_solar_cell_database_app = AppEntryPoint(
name='The Perovskite Solar Cell Database',
description="""
Search Entries of the Perovskite Solar Cell Database
""",
app=perovskite_database_app,
)

perovskite_ions = AppEntryPoint(
name='Halide Perovskite Ions',
description="""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
perovskite_ions_app = App(
label='Halide Perovskite Ions Database',
path='perovskite-ions',
category='Halide Perovskites',
description='Search Ions Used in Halide Perovskites',
category='Solar cells',
description='Search ions used in halide perovskites compunds.',
search_quantities=SearchQuantities(include=schemas),
columns=[
Column(quantity='results.material.elements', selected=True),
Expand Down
Loading

0 comments on commit 1fa1930

Please sign in to comment.