Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pyMKcam
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
pyMKcam
Commits
bafdbdd3
Commit
bafdbdd3
authored
13 years ago
by
Lars Kruse
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://pycam.git.sourceforge.net/gitroot/pycam/pycam
parents
aca4bf3c
5bd91f79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
utils.py
pycam/Geometry/utils.py
+1
-1
locations.py
pycam/Utils/locations.py
+1
-1
profile_pycam.py
scripts/profile_pycam.py
+4
-0
No files found.
pycam/Geometry/utils.py
View file @
bafdbdd3
...
@@ -51,6 +51,6 @@ else:
...
@@ -51,6 +51,6 @@ else:
if
_use_precision
:
if
_use_precision
:
number
=
lambda
value
:
decimal
.
Decimal
(
str
(
value
))
number
=
lambda
value
:
decimal
.
Decimal
(
str
(
value
))
else
:
else
:
number
=
lambda
value
:
float
(
value
)
number
=
float
This diff is collapsed.
Click to expand it.
pycam/Utils/locations.py
View file @
bafdbdd3
...
@@ -40,7 +40,7 @@ if "_MEIPASS2" in os.environ:
...
@@ -40,7 +40,7 @@ if "_MEIPASS2" in os.environ:
DATA_BASE_DIRS
=
[
os
.
path
.
join
(
PROJECT_BASE_DIR
,
"share"
),
DATA_BASE_DIRS
=
[
os
.
path
.
join
(
PROJECT_BASE_DIR
,
"share"
),
os
.
path
.
join
(
PROJECT_BASE_DIR
,
"share"
,
"pycam"
),
os
.
path
.
join
(
PROJECT_BASE_DIR
,
"share"
,
"pycam"
),
os
.
path
.
join
(
sys
.
prefix
,
"local"
,
"share"
,
"pycam"
),
os
.
path
.
join
(
sys
.
prefix
,
"local"
,
"share"
,
"pycam"
),
os
.
path
.
join
(
sys
.
prefix
,
"share"
,
"pycam"
)]
os
.
path
.
join
(
sys
.
prefix
,
"share"
,
"pycam"
)
,
'.'
]
FONTS_SUBDIR
=
"fonts"
FONTS_SUBDIR
=
"fonts"
UI_SUBDIR
=
"ui"
UI_SUBDIR
=
"ui"
...
...
This diff is collapsed.
Click to expand it.
scripts/profile_pycam.py
View file @
bafdbdd3
...
@@ -13,6 +13,10 @@ from pycam.Toolpath import Bounds
...
@@ -13,6 +13,10 @@ from pycam.Toolpath import Bounds
from
pycam.Toolpath.MotionGrid
import
get_fixed_grid
from
pycam.Toolpath.MotionGrid
import
get_fixed_grid
from
pycam.Utils.locations
import
get_data_file_location
from
pycam.Utils.locations
import
get_data_file_location
# Disable multi processing
from
pycam.Utils
import
threading
threading
.
__multiprocessing
=
False
""" Profile PyCAM doing several operations, print out the top 10
""" Profile PyCAM doing several operations, print out the top 10
(sorted by actual local runtime) methods.
(sorted by actual local runtime) methods.
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment