Skip to content

Fix#2

Closed
guanidene wants to merge 3 commits intoAllenDowney:masterfrom
guanidene:fix
Closed

Fix#2
guanidene wants to merge 3 commits intoAllenDowney:masterfrom
guanidene:fix

Conversation

@guanidene
Copy link

Sir, please go through my commits, where I have clearly mentioned the changes I have done.
You can then merge the branches if you are convinced.

…eviously worked correctly only for "start=0" argument. Now it works correctly for any value of "start" argument
To see how serious its effect can be, run 3waves.py and observe that the continuous and sampled outputs don't overlap if the former code is used!
jay-woo added a commit to jay-woo/ThinkDSP that referenced this pull request Feb 5, 2015
jay-woo added a commit to jay-woo/ThinkDSP that referenced this pull request Feb 5, 2015
ts = numpy.linspace(0, self.duration, n)
dt = 1.0 / self.framerate
ts = numpy.arange(self.start, self.start + self.duration, dt)
# Due to erroneous division, the ts calculated above and below
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waves now carry the ts around with them, so I think this is resolved.

@AllenDowney
Copy link
Owner

I think these are all resolved now. Thanks very much!

Smektych added a commit to Smektych/ThinkDSP that referenced this pull request May 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments