Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephan Seitz
pystencils
Commits
f5018ad5
Commit
f5018ad5
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Add pystencils.autodiff
parent
2e2bc712
No related branches found
No related tags found
No related merge requests found
Pipeline
#17016
failed
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pystencils/__init__.py
+10
-0
10 additions, 0 deletions
pystencils/__init__.py
pystencils_tests/test_import_autodiff.py
+21
-0
21 additions, 0 deletions
pystencils_tests/test_import_autodiff.py
with
31 additions
and
0 deletions
pystencils/__init__.py
+
10
−
0
View file @
f5018ad5
...
...
@@ -13,6 +13,16 @@ from .simp import AssignmentCollection
from
.slicing
import
make_slice
from
.sympyextensions
import
SymbolCreator
try
:
import
sys
import
pystencils_autodiff
sys
.
modules
[
'
pystencils.autodiff
'
]
=
pystencils_autodiff
except
Exception
:
class
autodiff
:
# NOQA
def
__getattribute__
(
self
):
raise
NotImplementedError
(
"
pystencils_autodiff is not installed! Run
'
pip install pystencils_autodiff
'"
)
__all__
=
[
'
Field
'
,
'
FieldType
'
,
'
fields
'
,
'
TypedSymbol
'
,
'
make_slice
'
,
...
...
This diff is collapsed.
Click to expand it.
pystencils_tests/test_import_autodiff.py
0 → 100644
+
21
−
0
View file @
f5018ad5
# -*- coding: utf-8 -*-
#
# Copyright © 2019 Stephan Seitz <stephan.seitz@fau.de>
#
# Distributed under terms of the GPLv3 license.
"""
"""
def
test_import_autodiff
():
import
pystencils.autodiff
def
main
():
test_import_autodiff
()
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment