-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "One possible implementation of models"
This reverts commit 7519ef0.
- Loading branch information
1 parent
7519ef0
commit 7bef979
Showing
9 changed files
with
39 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.