Skip to content

What does if all(sweep) do? #65

Description

@MichaelClerx

QC_dict = {}
for well in QC:
for sweep in QC[well]:
if all(sweep):
if bounds['Rseal'][0] < sweep[0] < bounds['Rseal'][1] and \
bounds['Cm'][0] < sweep[1] < bounds['Cm'][1] and \
bounds['Rseries'][0] < sweep[2] < bounds['Rseries'][1]:

Given that sweep is meant to be a tuple (Rseal, Cm, Rseries)
Does the syncropatch stick 0s in there somewhere? or False?

(also line above should be e.g. for well, sweep in QC.items() to avoid the dict lookup)

@chonlei @joeyshuttleworth ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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