FAIRmat-NFDI / nomad-analysis

This repo contains the standard NOMAD plugin for analysis.
https://fairmat-nfdi.github.io/nomad-analysis/
Apache License 2.0
1 stars 0 forks source link

Define static methods for base sections #15

Open ka-sarthak opened 3 months ago

ka-sarthak commented 3 months ago

This allows to have certain methods encapsulated within the base section, while also being available to be used as a standalone function. For example, having a static method find_peaks in SpectralAnalysis class can be used to automate the process of peak finding by using it in the normalize method. In addition, one can also use the method independently by calling nomad_analysis.SpectralAnalysis.find_peaks