Skip to content

IndexError: invalid index to scalar variable #8

@eatAWESOME

Description

@eatAWESOME

The following error occurs when following usage instructions for the sample data:

Traceback (most recent call last):

File "C:\Users\atilley\Desktop\Seabird\SeabirdCode-master\RunSeabird.py", line 10, in <module> mySeabird.identify()

File "C:\Users\atilley\Desktop\Seabird\SeabirdCode-master\seabird\seabird_class.py", line 129, in identify DCL_features = self.DCL.detect(data = self.cleanData[["Depth","Fluorescence"]],\

File "C:\Users\atilley\Desktop\Seabird\SeabirdCode-master\seabird\deepChlLayers.py", line 90, in detect peakUpperDepthBoundary_idx = np.searchsorted(data.Depth, peakUpperDepthBoundary)[0]+1 # find the boundary index

IndexError: invalid index to scalar variable

This can be fixed with removing the [0] in Line 90 of seabird\deepChlLayers.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions