oss-slu / Mouser

GNU General Public License v3.0
1 stars 7 forks source link

implementing unique id generation for experiment #146

Closed stanleyyang2001 closed 12 months ago

stanleyyang2001 commented 12 months ago

Fixes #123

A method to add unique id to the experiment has been created. New column added to the experiment table of the database file.

The feature is implemented because a unique id is needed to label the experiment instead of experiment name (there's a warning that avoid duplicated naming convention).

Package uuid is used that can generate random id is used to create the id for the experiment. Each time an experiment is created, there'll be a random id generated by uuid. To record the id, a new column called id is created in the experiment_database.py that's used to record the id.