Skip to content

[pyos] 'C' is not defined in Operations docs #434

@sneakers-the-rat

Description

@sneakers-the-rat

The Operations docs

have examples like

A = gb.Matrix.from_coo([0, 0, 1, 1, 2], [1, 2, 0, 2, 1],
                       [2.0, 5.0, 1.5, 4.0, 0.5])
B = gb.Matrix.from_coo([0, 0, 1, 1, 2, 2], [1, 2, 0, 1, 1, 2],
                       [3., -2., 0., 6., 3., 1.])

# These are equivalent
C << A.ewise_mult(B, op='min')  # method style
C << gb.binary.min(A & B)  # functional style

but when I try and do either of these I get 'C' is not defined which is what I expected from prior documentation. Would recommend making these doctests so that the docs don't include erroneous examples

part of: pyOpenSci/software-submission#81

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokendocumentationImprove or add to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions