Skip to content

Commit

Permalink
Revert "One possible implementation of models"
Browse files Browse the repository at this point in the history
This reverts commit 7519ef0.
  • Loading branch information
jeremykubica committed Jun 18, 2024
1 parent 7519ef0 commit 7bef979
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 238 deletions.
4 changes: 3 additions & 1 deletion src/tdastro/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .base_models import PhysicalModel
from .example_module import greetings, meaning

__all__ = ["greetings", "meaning"]
103 changes: 0 additions & 103 deletions src/tdastro/base_models.py

This file was deleted.

Empty file removed src/tdastro/effects/__init__.py
Empty file.
68 changes: 0 additions & 68 deletions src/tdastro/effects/white_noise.py

This file was deleted.

23 changes: 23 additions & 0 deletions src/tdastro/example_module.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""An example module containing simplistic functions."""


def greetings() -> str:
"""A friendly greeting for a future friend.
Returns
-------
str
A typical greeting from a software engineer.
"""
return "Hello from LINCC-Frameworks!"


def meaning() -> int:
"""The meaning of life, the universe, and everything.
Returns
-------
int
The meaning of life.
"""
return 42
Empty file removed src/tdastro/sources/__init__.py
Empty file.
36 changes: 0 additions & 36 deletions src/tdastro/sources/static_source.py

This file was deleted.

13 changes: 13 additions & 0 deletions tests/tdastro/test_example_module.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from tdastro import example_module


def test_greetings() -> None:
"""Verify the output of the `greetings` function"""
output = example_module.greetings()
assert output == "Hello from LINCC-Frameworks!"


def test_meaning() -> None:
"""Verify the output of the `meaning` function"""
output = example_module.meaning()
assert output == 42
30 changes: 0 additions & 30 deletions tests/tdastro/test_gaussian_noise.py

This file was deleted.

0 comments on commit 7bef979

Please sign in to comment.