Skip to content

Declare Sections with Name only #30228

@mjungmath

Description

@mjungmath

At this stage we have the following difference between sections and tensor fields:

sage: M = Manifold(2, 'M', start_index=1)                  
....: X.<x,y> = M.chart()                            
....: E = M.vector_bundle(2, 'E')      
....: e = E.local_frame('e')      
....: v = M.vector_field('v')      
....: s = E.section('s')
Traceback (most recent call last)
...
IndexError: string index out of range

This simply comes from the fact that the method section does not like pure strings as input, in contrast to vector_field or tensor.

CC: @egourgoulhon @tscrim

Component: manifolds

Author: Michael Jung

Branch/Commit: 78692a6

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/30228

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions