DownloadPane
After OptiPass has completed the last optimization run the GUI creates an instance of this class and saves it in the Download tab of the top level display.
Check the output panel to see which plots were created and to enable the net benefit plot if there is one.
The pane also has a form to allow the user to enter the name of the download file, the format for the figures, and a button to click when they are ready to download the data.
| Parameters: |
|
|---|
Source code in src/tidegates/widgets.py
677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 | |
_archive_cb(e)
Function called when the user clicks the Download button. Create the output folder and compress it. When the archive is ready, display a FileDownload widget with a button that starts the download.
src/tidegates/widgets.py
759 760 761 762 763 764 765 766 767 768 769 770 771 772 | |
_make_archive_dir()
Create an empty directory for the download, using the name in the form.
src/tidegates/widgets.py
774 775 776 777 778 779 780 781 782 783 | |
_make_folder_name()
Use the region names, target names, and budget range to create the default name of the zip file.
src/tidegates/widgets.py
745 746 747 748 749 750 751 752 753 754 755 756 757 | |
_save_files(loc)
Write the tables and figures to the download directory.
| Parameters: |
|
|---|
src/tidegates/widgets.py
785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 | |