Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

export_movies_template.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import view
  2. # this tells view all settings including the folder structure of your project
  3. # On Windows, if you copy paths from the file explorer, make sure the string below is always of the form r"......"
  4. ymlfile = r""
  5. # any manual changes to flags, add to dictionary as required
  6. flags_to_update = {
  7. # Example:
  8. # "CTV_scalebar": True,
  9. # "x_gap": 30,
  10. # "y_gap": 30,
  11. # "mv_individualScale": 2,
  12. # .....
  13. }
  14. # list of animals for which movies are to generated
  15. animals = [
  16. "",
  17. ""
  18. ]
  19. if __name__ == '__main__':
  20. # create a view object
  21. view_obj = view.VIEW()
  22. # load flags from yml file
  23. view_obj.update_flags_from_ymlfile(ymlfile)
  24. # update flags specified locally
  25. view_obj.update_flags(flags_to_update)
  26. # iterate over animals
  27. for animal in animals:
  28. # initialize view object with animal
  29. view_obj.initialize_animal(animal=animal)
  30. # iterate over measurements of the animal
  31. for measu in view_obj.get_measus_for_current_animal(analyze_values_to_use=(1,)):
  32. # load a measurement for the animal
  33. view_obj.load_measurement_data_from_current_animal(measu)
  34. # calculate signals
  35. view_obj.calculate_signals()
  36. # save movie for the loaded data
  37. view_obj.export_movie_for_current_measurement()
  38. # backup this script and the yml file used next to the created GDMs
  39. view_obj.backup_script_flags_configs_for_movies(files=[__file__, ymlfile])