Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a new search app with specific filter for the Perovskite Database entries #41

Merged
merged 17 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading