Fisheries Model 3.5.0 Batch Processing does not work

I have been trying to use the Batch Processing feature for the fisheries model but the program from prevents me from specifying a batch directory unless I choose a specific CSV file. And then when I run the model, it will only run the csv I selected and none of the other CSVs even though batch processing was selected. Does anyone know a workaround? I have lots of different population_param CSVs that I do not want to have to run individually. 
2643 x 829 - 205K

Comments

  • I also noted the following warning in the command line.

    C:\INVEST~1.0_X\INVEST~1\qtpy\__init__.py:181: RuntimeWarning: Selected binding "pyqt5" could not be found, using "pyqt4"
  • jdouglassjdouglass Administrator, NatCap Staff
    Hi @henryhansen, this definitely looks like a bug in validation that should be fixed.  I'll send you a development build that (I hope) will allow you to run the model successfully once I'm confident that it's been fixed.  More soon!

    James

  • Thank you. The sooner I can get that build the better! Thanks again. 
  • jdouglassjdouglass Administrator, NatCap Staff

    Let us know if that doesn't work!
  • So I uninstalled InVEST 3.5.0 and installed the build you provided. I am able to run the model without the error window showing up that I had previously described. The problem is that it is not exporting the results for each csv that was supplied in the batch processing directory. Below is just a snippet of the run log,  it looks like its calculating the results for each model but when I check the output folder there is only 1 result. Also, I still have the command line error. 

    11/30/2018 13:51:30 natcap.invest.fisheries.model INFO Model Equilibrated at Timestep 25

    11/30/2018 13:51:30 natcap.invest.reporting INFO Creating HTML Report

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.fisheries.model INFO Model Equilibrated at Timestep 25

    11/30/2018 13:51:30 natcap.invest.reporting INFO Creating HTML Report

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.fisheries.model INFO Model Equilibrated at Timestep 25

    11/30/2018 13:51:30 natcap.invest.reporting INFO Creating HTML Report

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.fisheries.model INFO Model Equilibrated at Timestep 24

    11/30/2018 13:51:30 natcap.invest.reporting INFO Creating HTML Report

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.fisheries.model INFO Model Equilibrated at Timestep 24

    11/30/2018 13:51:30 natcap.invest.reporting INFO Creating HTML Report

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting.table_generator INFO Generating HTML Table String

    11/30/2018 13:51:30 natcap.invest.reporting INFO Preparing to generate head element as String

    11/30/2018 13:51:30 natcap.invest.fisheries.fisheries WARNING

    11/30/2018 13:51:30 natcap.invest.ui.model INFO Execution finished

    11/30/2018 13:51:30 natcap.invest.utils INFO Elapsed time: 1.3s

    11/30/2018 13:51:30 natcap.invest.ui.execution INFO Execution finished

  • jdouglassjdouglass Administrator, NatCap Staff
    I bet there's something wrong with how the model handles filenames.  I'm sorry for the trouble!  In any case, could you send me your data (jdouglass@stanford.edu) so I can take a look and fix the issue?

    Thanks!
    James
  • jdouglassjdouglass Administrator, NatCap Staff
    If anyone else out there encounters this issue, the Fisheries model has been patched in a development version (download here: http://data.naturalcapitalproject.org/nightly-build/invest-forks/jdouglass/InVEST_3.5.0.post698+h2bda21eaa91f_x86_Setup.exe), and should be included in the next release of InVEST (either 3.5.1 or 3.6.0).
This discussion has been closed.