Skip to content

docs: Update data logging. #1

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

Merged
merged 4 commits into from
Mar 23, 2022

Conversation

microbit-carlos
Copy link

@microbit-mark FYI I'll be adding some updates to the datalog docs here (a PR to your fork), once it's ready we can merge it and the upstream PR will be updated and ready for merge into the upstream v2-docs branch.

First commit is just formatting right now, will add more things later.

@microbit-carlos
Copy link
Author

@microbit-mark this is ready for review and merge, which should update upstream PR bbcmicrobit#720.

@microbit-carlos microbit-carlos changed the title docs: Fix formatting for log docs. docs: Update data logging. Mar 21, 2022
docs/log.rst Outdated
flash storage. If set to ``False`` it uses a "fast" method,
which invalidates the data instead of performing a slower
full erase.
There are two erase modes, "full" completely removes the data from the
Copy link
Owner

Choose a reason for hiding this comment

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

I wonder if this is more explicit about the two modes?

Suggested change
There are two erase modes, "full" completely removes the data from the
There are two erase modes; "full" completely removes the data from the physical storage and "fast" which invalidates the data without removing it from the storage.

docs/log.rst Outdated
add(key=value)

There are two ways to add a data row into the log:
:param full: ``True`` selects a "full erase" and ``False`` selects the
Copy link
Owner

Choose a reason for hiding this comment

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

Rather than having quote marks for "full erase", just quote the mode names "full" and "fast" as it will be more consistent in help docs

Suggested change
:param full: ``True`` selects a "full erase" and ``False`` selects the
:param full: ``True`` selects a "full" erase and ``False`` selects the "fast" erase method.

Copy link
Owner

@microbit-mark microbit-mark left a comment

Choose a reason for hiding this comment

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

A couple of suggested edits, otherwise LGTM to merge

@microbit-carlos
Copy link
Author

Thanks Mark! Implemented the comments in e8069e4

@microbit-mark microbit-mark merged commit 09f400b into microbit-mark:datalog Mar 23, 2022
@microbit-carlos microbit-carlos deleted the datalog branch March 24, 2022 17:23
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