info(mesh.parallel_data()) fails in PyDOLFIN

Bug #860595 reported by Martin Sandve Alnæs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Undecided
Johan Hake

Bug Description

In [1]: from dolfin import *
In [2]: mesh = Mesh("mesh.xml.gz")

In [15]: pd = mesh.parallel_data()
In [18]: info(pd)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)

/home/martinal/dev/cbc/vmtkcsfmesher/<ipython console> in <module>()

/opt/fenics/dorsal-unstable/lib/python2.7/site-packages/dolfin/cpp.pyc in info(object, verbose)
   2649 _info(object.str(verbose))
   2650 else:
-> 2651 _info(object)
   2652
   2653 class GenericLinearSolver(Variable):

/opt/fenics/dorsal-unstable/lib/python2.7/site-packages/dolfin/cpp.pyc in _info(*args)
   2267
   2268 """
-> 2269 return _cpp._info(*args)
   2270
   2271 def info_stream(*args):

TypeError: in method '_info', argument 1 of type 'std::string'

Revision history for this message
Johan Hake (johan-hake) wrote : Re: [Bug 860595] [NEW] info(mesh.parallel_data()) fails in PyDOLFIN

Can you attach your custom mesh?

Johan

On Tuesday September 27 2011 07:02:05 Martin Sandve Alnæs wrote:
> Public bug reported:
>
> In [1]: from dolfin import *
> In [2]: mesh = Mesh("mesh.xml.gz")
>
> In [15]: pd = mesh.parallel_data()
> In [18]: info(pd)
> ---------------------------------------------------------------------------
> TypeError Traceback (most recent call last)
>
> /home/martinal/dev/cbc/vmtkcsfmesher/<ipython console> in <module>()
>
> /opt/fenics/dorsal-unstable/lib/python2.7/site-packages/dolfin/cpp.pyc in
> info(object, verbose) 2649 _info(object.str(verbose))
> 2650 else:
> -> 2651 _info(object)
> 2652
> 2653 class GenericLinearSolver(Variable):
>
> /opt/fenics/dorsal-unstable/lib/python2.7/site-packages/dolfin/cpp.pyc in
> _info(*args) 2267
> 2268 """
> -> 2269 return _cpp._info(*args)
> 2270
> 2271 def info_stream(*args):
>
> TypeError: in method '_info', argument 1 of type 'std::string'
>
> ** Affects: dolfin
> Importance: Undecided
> Status: New

Revision history for this message
Martin Sandve Alnæs (martinal) wrote :

Here.

Martin

On 27 September 2011 17:29, Johan Hake <email address hidden> wrote:
> Can you attach your custom mesh?
>
> Johan
>
> On Tuesday September 27 2011 07:02:05 Martin Sandve Alnæs wrote:
>> Public bug reported:
>>
>> In [1]: from dolfin import *
>> In [2]: mesh = Mesh("mesh.xml.gz")
>>
>> In [15]: pd = mesh.parallel_data()
>> In [18]: info(pd)
>> ---------------------------------------------------------------------------
>> TypeError                                 Traceback (most recent call last)
>>
>> /home/martinal/dev/cbc/vmtkcsfmesher/<ipython console> in <module>()
>>
>> /opt/fenics/dorsal-unstable/lib/python2.7/site-packages/dolfin/cpp.pyc in
>> info(object, verbose) 2649         _info(object.str(verbose))
>>    2650     else:
>> -> 2651         _info(object)
>>    2652
>>    2653 class GenericLinearSolver(Variable):
>>
>> /opt/fenics/dorsal-unstable/lib/python2.7/site-packages/dolfin/cpp.pyc in
>> _info(*args) 2267
>>    2268     """
>> -> 2269   return _cpp._info(*args)
>>    2270
>>    2271 def info_stream(*args):
>>
>> TypeError: in method '_info', argument 1 of type 'std::string'
>>
>> ** Affects: dolfin
>>      Importance: Undecided
>>          Status: New
>
> --
> You received this bug notification because you are a member of DOLFIN
> Core Team, which is subscribed to DOLFIN.
> https://bugs.launchpad.net/bugs/860595
>
> Title:
>  info(mesh.parallel_data()) fails in PyDOLFIN
>
> Status in DOLFIN:
>  New
>
> Bug description:
>  In [1]: from dolfin import *
>  In [2]: mesh = Mesh("mesh.xml.gz")
>
>  In [15]: pd = mesh.parallel_data()
>  In [18]: info(pd)
>  ---------------------------------------------------------------------------
>  TypeError                                 Traceback (most recent call last)
>
>  /home/martinal/dev/cbc/vmtkcsfmesher/<ipython console> in <module>()
>
>  /opt/fenics/dorsal-unstable/lib/python2.7/site-packages/dolfin/cpp.pyc in info(object, verbose)
>     2649         _info(object.str(verbose))
>     2650     else:
>  -> 2651         _info(object)
>     2652
>     2653 class GenericLinearSolver(Variable):
>
>  /opt/fenics/dorsal-unstable/lib/python2.7/site-packages/dolfin/cpp.pyc in _info(*args)
>     2267
>     2268     """
>  -> 2269   return _cpp._info(*args)
>     2270
>     2271 def info_stream(*args):
>
>  TypeError: in method '_info', argument 1 of type 'std::string'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dolfin/+bug/860595/+subscriptions
>

Revision history for this message
Garth Wells (garth-wells) wrote :

I wouldn't bother with this until ParallelData itself settles down.

Revision history for this message
Johan Hake (johan-hake) wrote :

This is now fixed with the extra bonus of exposing all member functions to Python using dicts of various degrees.

Changed in dolfin:
status: New → Fix Committed
assignee: nobody → Johan Hake (johan-hake)
milestone: none → 1.0-beta2
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.