Skip to content

Conversation

bednar
Copy link
Contributor

@bednar bednar commented Nov 5, 2019

The FluxRecord supports dictionary-style access:

record = FluxRecord()
record["table"] = 0
record["_start"] = _time
record["_stop"] = _time
record["_time"] = _time
record["_value"] = 1.0
record["_field"] = 'water level'
record["_measurement"] = 'h2o'
record["location"] = 'coyote_creek'

print(table.records[0]["_measurement"])
print(table.records[0]["_field"])
print(table.records[0]["_value"])
  • CHANGELOG.md updated
  • Rebased/mergeable
  • Tests pass
  • Sign CLA (if not already signed)

@bednar bednar added the enhancement New feature or request label Nov 5, 2019
@bednar bednar added this to the 0.0.3 milestone Nov 5, 2019
@bednar bednar self-assigned this Nov 5, 2019
@bednar bednar merged commit d497910 into master Nov 5, 2019
@bednar bednar deleted the feature-dictionary branch November 5, 2019 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant