Skip to content

Commit

Permalink
Made the method names of AKN uniform with the FMX
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioNar committed Dec 23, 2024
1 parent fea9a54 commit ccb5eaf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tulit/parsers/akomantoso.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ def get_preamble(self):
- 'citations': List of citations
- 'recitals': List of recitals
"""
self.citations = self.get_preamble_citations()
self.formula = self.get_preamble_formula()
self.recitals = self.get_preamble_recitals()
self.citations = self.get_citations()
self.formula = self.get_formula()
self.recitals = self.get_recitals()

def get_preamble_formula(self):
def get_formula(self):
"""
Extracts formula text from the preamble.
Expand All @@ -281,7 +281,7 @@ def get_preamble_formula(self):
formula_text = ' '.join(p.text.strip() for p in formula.findall('akn:p', namespaces=self.namespaces) if p.text)
return formula_text

def get_preamble_citations(self):
def get_citations(self):
"""
Extracts citations from the preamble.
Expand Down Expand Up @@ -310,7 +310,7 @@ def get_preamble_citations(self):

return citations

def get_preamble_recitals(self):
def get_recitals(self):
"""
Extracts recitals from the preamble.
Expand Down

0 comments on commit ccb5eaf

Please sign in to comment.