12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import view
- # this tells view all settings including the folder structure of your project
- ymlfile = "/home/aj/SharedWithWindows/MR_Till/usage_till.yml"
- # any manual changes to flags, add to dictionary as required
- flags_to_update = {
- "RM_ROITrace": 3,
- "LE_labelColumns": ("Measu", "Label")
- }
- list_of_animals = [
- "MR_190510a_or47a",
- "MR_190510b_or47a"
- ]
- if __name__ == '__main__':
- # create a view object
- view_obj = view.VIEW()
- # load flags from yml file
- view_obj.update_flags_from_ymlfile(ymlfile)
- # update flags specified locally
- view_obj.update_flags(flags_to_update)
- # iterate over animals
- for animal in list_of_animals:
- # initialize view object with animal
- view_obj.initialize_animal(animal=animal)
- # iterate over measurements of the animal
- for measu in view_obj.get_measus_by_analyze_for_current_animal(1):
- # load a measurement for the animal
- view_obj.load_measurement_data_from_current_animal(measu)
- # save glodatamixes for the loaded data
- view_obj.export_glodatamix_for_current_measurement()
- view_obj.backup_script_flags_configs_for_GDMs(files=[__file__, ymlfile])
|