Skip to content
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

Collect and export Science data #14

Closed
Levi-Lesches opened this issue Jul 29, 2022 · 2 comments
Closed

Collect and export Science data #14

Levi-Lesches opened this issue Jul 29, 2022 · 2 comments
Assignees
Labels
area: backend An issue with the back end feature: science This issue is for science-related feature requests type: enhancement New feature or request

Comments

@Levi-Lesches
Copy link
Member

Levi-Lesches commented Jul 29, 2022

The Science team needs to be able to export the data collected by the science subsystem to process later with a Python script. This means collecting data from the network and storing it over time so it can be exported as a neatly packaged csv file.

We want something like:

class ScienceModel {
  /// The current metrics as reported by the rover
  ScienceMetrics? get metrics;

  /// A tracked list of all the metrics reported by the rover in intervals.
  List<ScienceMetrics> allMetrics; 
  
  @override 
  Future<void> init() {
    Services.messageReceiver.registerHandler( /* Update metrics AND allMetrics */ )
  }

  /// Writes [allMetrics] to a file in a machine-readable format, like CSV or JSON
  Future<void> saveMetrics() { }
}
@Levi-Lesches Levi-Lesches added type: enhancement New feature or request area: backend An issue with the back end feature: science This issue is for science-related feature requests labels Jul 29, 2022
@Levi-Lesches Levi-Lesches added the blocked This PR needs is waiting for one or more issues to be closed. label Jul 29, 2022
@Levi-Lesches Levi-Lesches assigned juliamariee and unassigned truizbon Sep 30, 2022
@github-actions
Copy link

Status: Ready to merge ✔️

Issues blocking this PR:


This comment was automatically written by the Blocking Issues bot, and this PR will be monitored for further progress.

@github-actions github-actions bot removed the blocked This PR needs is waiting for one or more issues to be closed. label Oct 25, 2022
@Levi-Lesches
Copy link
Member Author

Implemented in #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend An issue with the back end feature: science This issue is for science-related feature requests type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants