Princeton-LSI-ResearchComputing / tracebase

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

Infusate parsing updates for intersheet relations in `StudyLoader` #1010

Open hepcat72 opened 1 week ago

hepcat72 commented 1 week ago

Summary Change Description

Made updates to the infusate and tracer name parsing - specifically the construction of the data objects. The new unparsed tracer strings have a concentration on them which is incompatible with code elsewhere, specifically in the check method inside the Infusate class. The check also relies on the name field, as does code in the infusates loader. Once I added the defer_autoupdates decorator from maintainedmodel, those method would fail because the names were not there. So I just changed them to use the generator methods instead of the field. This only affects loading and validation - not the operation of the database in production.

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: