Skip to content

DISC algorithm modifies input zenith series #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wholmgren opened this issue Mar 10, 2015 · 0 comments
Closed

DISC algorithm modifies input zenith series #24

wholmgren opened this issue Mar 10, 2015 · 0 comments
Labels
Milestone

Comments

@wholmgren
Copy link
Member

Here's the offending lines:

    Ztemp=SunZen
    Ztemp[SunZen > 87]=87

Ztemp references the same object as the input SunZen, so the 87 assignment rudely modifies the input object.

This can be fixed by using Ztemp=SunZen.copy().

Can be closed in the same PR as #6.

@bmu bmu added this to the 0.1 milestone Mar 12, 2015
@bmu bmu added the bug label Mar 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants