Commit a64132db authored by Olivier Lantsoght's avatar Olivier Lantsoght
Browse files

[MBsysPy][Debug] add missing EoL due to pass from print to mbs_msg

parent f46db470
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment