# This program generates some of the data used by tests
# other data samples could have been obtained simply by running the program
#
# Note that we want to have common data in tests, instead of generating them on the fly
# because the plate simulation steps do not provide the same results on all the platforms

import os
from worldengine.plates import _plates_simulation
from worldengine.world import World


def main(tests_data_dir):
    w = _plates_simulation("Foo", 300, 200, 279)
    w.to_pickle_file("%s/plates_279.world" % tests_data_dir)


if __name__ == '__main__':
    blessed_images_dir = os.path.dirname(os.path.realpath(__file__))
    tests_data_dir = os.path.abspath(os.path.join(blessed_images_dir, '../data'))
    main(tests_data_dir)

# This program generates some of the data used by tests
# other data samples could have been obtained simply by running the program
#
# Note that we want to have common data in tests, instead of generating them on the fly
# because the plate simulation steps do not provide the same results on all the platforms

import os
from worldengine.plates import _plates_simulation


def main(tests_data_dir):
    w = _plates_simulation("Foo", 300, 200, 279)
    w.to_pickle_file("%s/plates_279.world" % tests_data_dir)


if __name__ == '__main__':
    blessed_images_dir = os.path.dirname(os.path.realpath(__file__))
    tests_data_dir = os.path.abspath(os.path.join(blessed_images_dir, '../data'))
    main(tests_data_dir)

remove useless import