Skip to content

Commit

Permalink
Remove plotly plots from ELN
Browse files Browse the repository at this point in the history
  • Loading branch information
ka-sarthak committed Dec 6, 2024
1 parent f49e168 commit f6f351c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/nomad_measurements/xrd/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
)
from nomad.datamodel.metainfo.plot import (
PlotlyFigure,
PlotSection,
)
from nomad.datamodel.results import (
DiffractionPattern,
Expand Down Expand Up @@ -819,7 +818,7 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger'):
)


class ELNXRayDiffraction(XRayDiffraction, EntryData, PlotSection):
class ELNXRayDiffraction(XRayDiffraction, EntryData):
"""
Example section for how XRayDiffraction can be implemented with a general reader for
common XRD file types.
Expand Down Expand Up @@ -1147,6 +1146,8 @@ def backward_compatibility(self):
# Migration to using HFD5References: removing exisiting results
if self.results:
self.results = []
if self.figures:
del self.figures

def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger'):
"""
Expand Down Expand Up @@ -1175,8 +1176,6 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger'):
if not self.results:
return

self.figures = self.results[0].generate_plots(archive, logger)


class RawFileXRDData(EntryData):
"""
Expand Down

0 comments on commit f6f351c

Please sign in to comment.