Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
trs
Commits
709a061c
Commit
709a061c
authored
13 years ago
by
Taddeus Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Applied pep8.
parent
261300cc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/rules/goniometry.py
+2
-2
2 additions, 2 deletions
src/rules/goniometry.py
src/rules/groups.py
+2
-2
2 additions, 2 deletions
src/rules/groups.py
src/rules/numerics.py
+0
-5
0 additions, 5 deletions
src/rules/numerics.py
with
4 additions
and
9 deletions
src/rules/goniometry.py
+
2
−
2
View file @
709a061c
from
..node
import
Expression
Node
as
N
,
ExpressionLeaf
as
L
,
Scope
,
\
from
..node
import
Expression
Leaf
as
L
,
Scope
,
OP_ADD
,
OP_POW
,
OP_MUL
,
\
OP_ADD
,
OP_POW
,
OP_MUL
,
OP_SIN
,
OP_COS
,
OP_TAN
OP_SIN
,
OP_COS
,
OP_TAN
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..translate
import
_
from
..translate
import
_
...
...
This diff is collapsed.
Click to expand it.
src/rules/groups.py
+
2
−
2
View file @
709a061c
from
itertools
import
combinations
from
itertools
import
combinations
from
..node
import
Expression
Node
as
Node
,
ExpressionLeaf
as
Leaf
,
Scop
e
,
\
from
..node
import
Expression
Leaf
as
Leaf
,
Scope
,
OP_ADD
,
OP_MUL
,
nary_nod
e
,
\
OP_ADD
,
OP_MUL
,
nary_node
,
negate
negate
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..possibilities
import
Possibility
as
P
,
MESSAGES
from
..translate
import
_
from
..translate
import
_
...
...
This diff is collapsed.
Click to expand it.
src/rules/numerics.py
+
0
−
5
View file @
709a061c
...
@@ -38,11 +38,6 @@ def add_numerics(root, args):
...
@@ -38,11 +38,6 @@ def add_numerics(root, args):
scope
,
c0
,
c1
=
args
scope
,
c0
,
c1
=
args
value
=
c0
.
actual_value
()
+
c1
.
actual_value
()
value
=
c0
.
actual_value
()
+
c1
.
actual_value
()
if
value
<
0
:
leaf
=
Leaf
(
-
value
).
negate
()
else
:
leaf
=
Leaf
(
value
)
# Replace the left node with the new expression
# Replace the left node with the new expression
scope
.
replace
(
c0
,
Leaf
(
abs
(
value
)).
negate
(
int
(
value
<
0
)))
scope
.
replace
(
c0
,
Leaf
(
abs
(
value
)).
negate
(
int
(
value
<
0
)))
...
...
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