Skip to content

Declare Sections with Name only #30228

Closed
Closed

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

Activity

  1. added this to the sage-9.2 milestone on Jul 26, 2020
  2. mjungmath commented on Jul 26, 2020

    @mjungmath
    Author
  3. mjungmath commented on Jul 26, 2020

    @mjungmath
    ContributorAuthor
  4. mjungmath commented on Jul 26, 2020

    @mjungmath
    ContributorAuthor

    Commit: 490d38d

  5. mjungmath commented on Jul 26, 2020

    @mjungmath
    ContributorAuthor

    New commits:

    490d38dTrac #30228: init comp with string
  6. mjungmath commented on Jul 26, 2020

    @mjungmath
    Author
  7. sagetrac-git commented on Jul 26, 2020

    sagetrac-gitmannequin
    Mannequin

    Branch pushed to git repo; I updated commit sha1. New commits:

    78692a6Trac #30228: misleading comment corrected
  8. sagetrac-git commented on Jul 26, 2020

    sagetrac-gitmannequin
    Mannequin

    Changed commit from 490d38d to 78692a6

  9. tscrim commented on Jul 27, 2020

    @tscrim
    Collaborator
    comment:6

    LGTM.

  10. tscrim commented on Jul 27, 2020

    @tscrim
    Collaborator

    Reviewer: Travis Scrimshaw

  11. vbraun commented on Aug 2, 2020

    @vbraun
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions