Skip to content

module numpy has no attribute 'inv' #145

Closed
@Russjas

Description

@Russjas

`
File "reflectance_processing.py", line 133, in
test = sp.unmix(filtered1, endmembers)

File "\miniconda3\envs\spectral_environment\lib\site-packages\spectral\algorithms\algorithms.py", line 1316, in unmix
pi = np.dot(np.inv(pi), members)

File "\miniconda3\envs\spectral_environment\lib\site-packages\numpy_init_.py", line 311, in getattr
raise AttributeError("module {!r} has no attribute "

AttributeError: module 'numpy' has no attribute 'inv'`

This may be my inexperience with all things python. and even less experience with linear algebra. Changed the line to

pi = np.dot(np.linalg.inv(pi), members)

seems to work, but I dont know what I am doing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions