-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
2,540 additions
and
1,849 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
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
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,8 @@ | ||
@article{Shoshany2024_OGRePy, | ||
archiveprefix = {arXiv}, | ||
author = {Barak Shoshany}, | ||
doi = {10.48550/arXiv.2409.03803}, | ||
eprint = {2409.03803}, | ||
title = {{OGRePy: An Object-Oriented General Relativity Package for Python}}, | ||
year = {2024} | ||
} |
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 @@ | ||
authors: | ||
- email: [email protected] | ||
family-names: Shoshany | ||
given-names: Barak | ||
orcid: https://orcid.org/0000-0003-2222-127X | ||
cff-version: 1.2.0 | ||
doi: 10.48550/arXiv.2409.03803 | ||
license: MIT | ||
message: If you use this package in published research, please cite it as follows. | ||
preferred-citation: | ||
authors: | ||
- family-names: Shoshany | ||
given-names: Barak | ||
doi: 10.48550/arXiv.2409.03803 | ||
journal: arXiv | ||
title: 'OGRePy: An Object-Oriented General Relativity Package for Python' | ||
type: article | ||
url: https://arxiv.org/abs/2409.03803 | ||
year: 2024 | ||
repository-code: https://github.com/bshoshany/OGRePy | ||
title: 'OGRePy: An Object-Oriented General Relativity Package for Python' | ||
type: software | ||
url: https://github.com/bshoshany/OGRePy |
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,6 +1,6 @@ | ||
r""" | ||
# OGRePy: An Object-Oriented General Relativity Package for Python | ||
v1.1.0 (2024-09-08) | ||
v1.2.0 (2024-09-15) | ||
By **Barak Shoshany**\ | ||
Email: <[email protected]>\ | ||
|
@@ -14,14 +14,33 @@ | |
Copyright (c) 2024 [Barak Shoshany](https://baraksh.com/). Licensed under the [MIT license](https://github.com/bshoshany/OGRePy/blob/master/LICENSE.txt). | ||
If you use this package in published software or research, please provide a link to [the GitHub repository](https://github.com/bshoshany/OGRePy) in the source code and documentation. | ||
If you use this package in software of any kind, please provide a link to [the GitHub repository](https://github.com/bshoshany/OGRePy) in the source code and documentation. | ||
If you use this package in published research, please cite it as follows: | ||
* Barak Shoshany, *"OGRePy: An Object-Oriented General Relativity Package for Python"*, [doi:10.48550/arXiv.2409.03803](https://doi.org/10.48550/arXiv.2409.03803), [arXiv:2409.03803](https://arxiv.org/abs/2409.03803) (September 2024) | ||
You can use the following BibTeX entry: | ||
```bibtex | ||
@article{Shoshany2024_OGRePy, | ||
archiveprefix = {arXiv}, | ||
author = {Barak Shoshany}, | ||
doi = {10.48550/arXiv.2409.03803}, | ||
eprint = {2409.03803}, | ||
title = {{OGRePy: An Object-Oriented General Relativity Package for Python}}, | ||
year = {2024} | ||
} | ||
``` | ||
If you found this project useful, please consider [starring it on GitHub](https://github.com/bshoshany/OGRePy/stargazers)! This allows me to see how many people are using my code, and motivates me to keep working to improve it. | ||
""" | ||
|
||
# Import SymPy (for convenience, so we don't have to import it to the notebook separately). | ||
import sympy as s | ||
|
||
# Import all public OGRePy objects. | ||
from ._core import Coordinates, CovariantD, Metric, OGRePyError, PartialD, Tensor, __version__, calc, diag, doc, func, info, options, release_date, sym, syms, update_check, welcome | ||
from ._core import Coordinates, CovariantD, Metric, OGRePyError, PartialD, Tensor, __version__, calc, cite, compare, diag, doc, func, info, options, release_date, sym, syms, update_check, welcome | ||
|
||
# The names that will be exported if using `from OGRePy import *`. Contains exactly all the names imported above. | ||
__all__: list[str] = ["s", "Coordinates", "CovariantD", "Metric", "OGRePyError", "PartialD", "Tensor", "__version__", "calc", "diag", "doc", "func", "info", "options", "release_date", "sym", "syms", "update_check", "welcome"] | ||
__all__: list[str] = ["s", "Coordinates", "CovariantD", "Metric", "OGRePyError", "PartialD", "Tensor", "__version__", "calc", "cite", "compare", "diag", "doc", "func", "info", "options", "release_date", "sym", "syms", "update_check", "welcome"] |
Oops, something went wrong.