Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fekad committed Jun 6, 2024
1 parent 85f4533 commit 7bed6fc
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions src/nomad_aitoolkit/apps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@
FilterMenus,
FilterMenuSizeEnum,
Filters,
Format,
Layout,
ModeEnum,
RowDetails,
Rows,
RowSelection,
RowURLActions,
ScaleEnum,
WidgetTerms,
Format,
ModeEnum
)
from pydantic import Field

Expand Down Expand Up @@ -68,12 +72,8 @@ class AIToolkitAppEntryPoint(AppEntryPoint):
'entry_id',
'entry_type',
'authors',
# 'references',
# 'upload_create_time',
'data.name#nomad_aitoolkit.schema.package.AIToolkitNotebook',
'data.category#nomad_aitoolkit.schema.package.AIToolkitNotebook',
# 'data.systems#nomad_aitoolkit.schema.package.AIToolkitNotebook',
# 'data.methods#nomad_aitoolkit.schema.package.AIToolkitNotebook',
'data.platform#nomad_aitoolkit.schema.package.AIToolkitNotebook',
'data.date#nomad_aitoolkit.schema.package.AIToolkitNotebook',
],
Expand All @@ -87,26 +87,19 @@ class AIToolkitAppEntryPoint(AppEntryPoint):
'entry_id': Column(),
'entry_type': Column(label='Entry type', align=AlignEnum.LEFT),
'authors': Column(label='Authors', align=AlignEnum.LEFT),
# 'references': Column(label='References', align=AlignEnum.LEFT),
# 'upload_create_time': Column(label='Upload time', align=AlignEnum.LEFT),
'data.name#nomad_aitoolkit.schema.package.AIToolkitNotebook': Column(
label='Name', align=AlignEnum.LEFT
),
'data.category#nomad_aitoolkit.schema.package.AIToolkitNotebook': Column(
label='Category'
),
# 'data.systems#nomad_aitoolkit.schema.package.AIToolkitNotebook': Column(
# label='Systems'
# ),
# 'data.authors_list#nomad_aitoolkit.schema.package.AIToolkitNotebook': Column(
# label='Authors',
# align=AlignEnum.LEFT
# ),
'data.platform#nomad_aitoolkit.schema.package.AIToolkitNotebook': Column(
label='Platform', align=AlignEnum.LEFT
),
'data.date#nomad_aitoolkit.schema.package.AIToolkitNotebook': Column(
label='Upload time', align=AlignEnum.LEFT, format=Format(mode=ModeEnum.DATE)
label='Upload time',
align=AlignEnum.LEFT,
format=Format(mode=ModeEnum.DATE),
),
},
),
Expand Down Expand Up @@ -164,5 +157,10 @@ class AIToolkitAppEntryPoint(AppEntryPoint):
),
]
),
rows=Rows(
actions=RowURLActions(enabled=True, label='Launch notebook'),
details=RowDetails(enabled=True),
selection=RowSelection(enabled=True),
),
),
)

0 comments on commit 7bed6fc

Please sign in to comment.