Skip to content

Issue with number of segment calculation #348

@jolivetr

Description

@jolivetr

Dear all,
While trying to adapt the monitoring notebook to my case https://noisepy.github.io/NoisePy/monitoring/monitoring_demo.html, I hit a bug when the calc_segment method returned that num_segmts was not defined.
Indeed, checking on line 195 of monitoring_utils.py, there is a if condition that leads to setting up num_segmts while it is not set if the condition is not met, while it is used afterwards, no matter what.
Is there something incorrect in my case or should we set num_segmts to 1 otherwise? I have just uploaded the notebook I am using and the correlation setup yaml file.
Cheers,
R

xcorr_config.yml

compute_velocity_variations.ipynb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions