-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarifications for migration guides (#527)
- Loading branch information
Showing
9 changed files
with
41 additions
and
49 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 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
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
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
# Migration Guide (Old) | ||
|
||
> Note: The APIs have changed since the era of `sympy.galgebra` and `brombo/galgebra`, some properties and methods are deprecated, the supported versions of Python and SymPy have also changed, please check [Changelog](https://galgebra.readthedocs.io/en/latest/changelog.html) and further update your scripts accordingly besides the following. If you encounter any problems, feel free to [open an issue](https://github.com/pygae/galgebra/issues/new)! | ||
# Migrating from [sympy.galgebra](https://docs.sympy.org/0.7.6.1/modules/galgebra/) | ||
|
||
GAlgebra is no longer part of SymPy since 1.0.0, if you have an import like this in your source: | ||
|
||
```python | ||
from sympy.galgebra.ga import * | ||
``` | ||
|
||
Simply remove the `sympy.` prefix before `galgebra` then you are good to go: | ||
|
||
```python | ||
from galgebra.ga import * | ||
``` | ||
|
||
# Migrating from [brombo/galgebra](https://github.com/brombo/galgebra) | ||
|
||
The `setgapth.py` way to install is now deprecated by `pip install galgebra` and all modules in GAlgebra should be imported from `galgebra`, for example: | ||
|
||
```python | ||
from galgebra.printer import Format, Eprint, latex, GaPrinter | ||
from galgebra.ga import Ga | ||
from galgebra.mv import Mv, Nga | ||
``` |
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