Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Conversation

@black-adder
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 90.185% when pulling 29f9f65 on change_sampler_api into a5af184 on master.

assert sampler.tags == {
'sampler.type': 'probabilistic',
'sampler.param': DEFAULT_SAMPLING_PROBABILITY,
}
Copy link
Member

Choose a reason for hiding this comment

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

any reason we're not checking this anymore? E.g. in L167

mock_time.side_effect = lambda: ts + 0.25
assert not sampler.is_sampled(0), \
'not enough time passed for full item'
sampled, tags = sampler.is_sampled(0)
Copy link
Member

Choose a reason for hiding this comment

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

if not using returned tags, use _

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

lgtm aside from a couple nits

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 90.185% when pulling e1076c9 on change_sampler_api into a5af184 on master.

@black-adder black-adder merged commit ce740a8 into master Oct 31, 2016
@black-adder black-adder deleted the change_sampler_api branch October 31, 2016 16:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants