Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
robotran
mbsysc
Commits
a64132db
Commit
a64132db
authored
Feb 15, 2021
by
Olivier Lantsoght
Browse files
[MBsysPy][Debug] add missing EoL due to pass from print to mbs_msg
parent
f46db470
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
MBsysC/mbs_interface/MBsysPy/mbsyspy/mbs_data.py
View file @
a64132db
This diff is collapsed.
Click to expand it.
MBsysC/mbs_interface/MBsysPy/mbsyspy/mbs_part.py
View file @
a64132db
...
...
@@ -83,11 +83,11 @@ class MbsPart(object):
A MbsPart instance.
"""
if
__DEBUG__
:
mbs_msg
(
"DEBUG>> Creating MbsPart struct for "
+
mbs
.
mbs_name
+
"' MBS."
)
mbs_msg
(
"DEBUG>> Creating MbsPart struct for "
+
mbs
.
mbs_name
+
"' MBS.
\n
"
)
self
.
mbs_part_ptr
=
libmodules
.
mbs_new_part
(
mbs
.
mbs_data_ptr
)
if
__DEBUG__
:
mbs_msg
(
"DEBUG>> MbsPartmbs_ structure loaded"
)
mbs_msg
(
"DEBUG>> MbsPartmbs_ structure loaded
\n
"
)
self
.
mbs
=
mbs
...
...
@@ -129,14 +129,14 @@ class MbsPart(object):
# Exposing some memory
if
__DEBUG__
:
mbs_msg
(
"DEBUG>> Exposing MbsPart fields"
)
mbs_msg
(
"DEBUG>> Exposing MbsPart fields
\n
"
)
self
.
__q_closed
=
np
.
ctypeslib
.
as_array
(
self
.
mbs_part_ptr
.
contents
.
q_closed
,
(
self
.
mbs
.
njoint
,))
def
__str__
(
self
):
"""Return str(self)."""
if
__DEBUG__
:
mbs_msg
(
"DEBUG>> start of __str"
)
mbs_msg
(
"DEBUG>> start of __str
\n
"
)
return
"MbsPart instance has nothing to be printed from C library!"
...
...
@@ -144,7 +144,7 @@ class MbsPart(object):
"""Delete the object by freeing the C-related memory."""
libmodules
.
mbs_delete_part
(
self
.
mbs_part_ptr
)
if
__DEBUG__
:
mbs_msg
(
"DEBUG>> MbsPart pointer deleted"
)
mbs_msg
(
"DEBUG>> MbsPart pointer deleted
\n
"
)
def
run
(
self
,
**
kwargs
):
"""Run a coordinate partitioning.
...
...
@@ -155,7 +155,7 @@ class MbsPart(object):
# Assign required user functions
if
self
.
mbs
.
opt_load_c
<
2
:
if
__DEBUG__
:
mbs_msg
(
"DEBUG>> Loading user functions"
)
mbs_msg
(
"DEBUG>> Loading user functions
\n
"
)
self
.
mbs
.
__load_user_fct__
(
__MODULE_DIR__
,
self
.
user_fun_list
,
self
.
user_path
)
self
.
mbs
.
__assign_user_fct__
(
self
.
user_fun_list
,
self
)
...
...
@@ -164,7 +164,7 @@ class MbsPart(object):
if
self
.
mbs
.
opt_load_c
<
1
:
# Loading symbolic function
if
__DEBUG__
:
mbs_msg
(
"DEBUG>> Loading symbolic functions"
)
mbs_msg
(
"DEBUG>> Loading symbolic functions
\n
"
)
self
.
mbs
.
__load_symbolic_fct__
(
__MODULE_DIR__
,
self
.
symb_fun_list
,
self
.
symbolic_path
)
self
.
mbs
.
__assign_symb_fct__
(
self
.
symb_fun_list
,
self
)
...
...
Write
Preview
Supports
Markdown
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