Princeton-LSI-ResearchComputing / tracebase

Mouse Metabolite Tracing Data Repository for the Rabinowitz Lab
MIT License
4 stars 1 forks source link

Added data (/sample names) to the template (in dict form) #932

Closed hepcat72 closed 6 months ago

hepcat72 commented 6 months ago

Summary Change Description

The data to add is extracted from errors:

Row data is extracted in the form of a dict keyed on sheets. That dict records "row records" using a unique key. The record is a dict keyed on header name and is associated with the value to enter in the sheet.

Once all the data to add has been extracted from the exceptions, the sheet (in the form of a pandas-style dict) is then updated by grabbing the next available row and adding the new data to it.

Affected Issues/Pull Requests

Review Notes

See comments in-line.

Checklist

This pull request will be merged once the following requirements are met. The author and/or reviewers should uncheck any unmet requirements:

hepcat72 commented 6 months ago

Rebase update coming. Just relinting and testing before push.