Skip to content

Commit

Permalink
Moved esis.science.papers.instrument.preamble.body() to `esis.scien…
Browse files Browse the repository at this point in the history
…ce.papers.instrument.preamble()`.
  • Loading branch information
byrdie committed Oct 31, 2023
1 parent 3f4c3fb commit a50abc7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion esis/science/papers/instrument/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ._acronyms import *
from . import preamble
from ._preamble import *
# from . import variables
from ._authors import *
from . import sections
Expand Down
2 changes: 1 addition & 1 deletion esis/science/papers/instrument/_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def document() -> aastex.Document:
doc.packages.append(aastex.Package('amsmath'))
doc.packages.append(aastex.Package('acronym'))

doc.preamble += preamble.body()
doc.preamble += preamble()

# variables.append_to_document(doc)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import aastex
from . import acronyms

__all__ = ['body']
__all__ = ["preamble"]


def body() -> list[str]:
def preamble() -> list[str]:

result = []

Expand Down
6 changes: 6 additions & 0 deletions esis/science/papers/instrument/_tests/test_preamble.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import esis.science.papers.instrument


def test_preamble():
result = esis.science.papers.instrument.preamble()
assert isinstance(result, list)

0 comments on commit a50abc7

Please sign in to comment.