Skip to content

bug: analysis.correlate_experiments() #20

Open
@aowen-uwmad

Description

@aowen-uwmad

Was unable to use the analysis.correlate_experiments() due to a NameError.
Line 1003 referenced in the traceback is the only occurrence of isin_array in analysis.py module, so either it was defined in a different module and not called correctly, or is not defined at all.
The experiments passed were test-of-concept using the same data set, but with different thresholds for the peak finding. The experiment sessions seem to work fine otherwise.

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-27-a7140606d294> in <module>
----> 1 analysis.correlate_experiments((pyrimidinetest,pyrimidine))

...\Anaconda\envs\pst\lib\site-packages\pyspectools\spectra\analysis.py in correlate_experiments(experiments, thres_prox, index)
   1001                     experiment.line_lists["Peaks"].frequencies
   1002                 )
-> 1003                 mask = isin_array(base_freqs, comp_freqs, thres_prox)
   1004                 # Convert to boolean mask
   1005                 mask.dtype = bool

NameError: name 'isin_array' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions