Tags: NRCan/CanFlood
Tags
v121 (#121) * Renamed rst files * dfunc tweaks and messaging * curve fixes * Create vmisc.py * Update vmisc.py * Update modcom.py add set_scale to vfunc * Update vcoms.py improve tab writing * wFlow tweaks * wFlow tweaks * Update scripts.py * fix extrapolation error reporting * add workflow retrival v2 * migrate to native rasterCalc * update tests * fix rasterCalc. implement some session passing * Update rsamp.py * working * improve workflows * upgrade rsamp_dtm to retrieve2 * Update scripts_retrieve.py * Update Q.py add fieldcalculator * add summary stuff * fix handling of zero impact L1 moderls * fix kwarg handling on rsamp * Update scripts.py * Update scripts_retrieve.py add dtm file name * Update rsamp.py * add testing script * Update modcom.py improve type check error message * Create test.txt * Update basic.py * Update 05_toolsets.rst * Model report (#57) * Update results.ui add report tab * setup reporter * expand wfDial for sequence * upgrade workflow dialogs * Update 06_tutorials.rst fix some typos * dialog tut1a setup * reporter work dialog is crashing now * tut1 dialog finished * reporter progress * add picture layouts * Update reporter.py * switch to reporter (progress) * reporter working * Update Q.py fix context * Feature - Results - Added page numbers and page headers to each section during report creation (#39) * feature: Added page numbers and page headers for each generated section * bugfix: Fixed issues with template file * Bugfix - Switched to using value of impact_units as axis label (#40) * chore: Added PR template * bugfix: Setting impact label to impact_units value * feature: Changed page header text to use name from control file (#45) * feature: Changed page header text to use name from control file & fixed comment on impact_name variable * chore: Removed boiler plate from PR template * bugfix: Added page number to cover page (#44) * Added ability to add finv table to report (#49) * chore: Fixed some comments; feature: Added new table method * feature: Loading csv file and displaying as frame * bugfix: Now limiting to 10 rows, styling changes and comments * bugfix: Removed unnecessary flag * bugfix: Swapped to using pandas dataframe for inventory table * bugfix: Fixed issue with lost table features during export * add label and notes * Update dialog.py use MOdel's native finv import * Update reporter.py replace layer generator with existing method Co-authored-by: cefect <47092034+cefect@users.noreply.github.com> * feature: Added Damage curves plot as new section (#53) * chore: Comment corrections * feature: Added framework of adding damage curve plot to report, TODO: Get curves fp from cf * feature: Loading control file and using curves filepath for plot * Update dialog.py add some notes and rename some functions Co-authored-by: Seth Bryant <bryant.seth@gmail.com> * feature: Adding Event summary table underneath diagrams (#51) * feature: Getting raw dataframe for r_ttl, formatting for table and table header under plot * feature: Formatting impacts values, added underline to subheader, capitalised table headers * changed to location indexing Co-authored-by: Seth Bryant <bryant.seth@gmail.com> Co-authored-by: Seth Bryant <cefect@gmail.com> * crop finv summary * add titles. code reusability. * 54 add damage function library purge (#56) * Update build.ui add purge button * add button and ftags * move curve output function * Update modcom.py cleanup some whitespace and comments * Update dialog.py debug run fixes * Update basic.py add set_info * Update build.ui add tooltip * Update modcom.py fix some comments * Update build.ui fix tab order Co-authored-by: Ben Maxwell <103564326+BenMaxIBI@users.noreply.github.com> * Pytest migrate (#58) * start files * test_01_build_scenario * move _change_tab * remove issues * tutorial 2 tests * Update dialog_vfunc.py whitespace * Update basic.py add pars_dir * Delete test.txt * Pytest migrate2 (#59) * Create .gitignore * Update test_build.py switch to ui clicks * remove aux.xmls * change tutorial data structure * add inventory tests to tut2 * Update Q.py add layers to project * Update 06_tutorials.rst tutorial 2 tweaks * adding tests * Update 06_tutorials.rst * Update modcom.py build_exp_finv: switch check Update modcom.py * Update test_build.py * test curve purges * allow test fixtures instead of always instancing * Update conftest.py use pytest-qgis * add version test * Update 06_tutorials.rst add purge functions to tutorial 2 docs * test_03 data * test_04_build_hsamp * Update test_t2.py test_04_build_hsamp * Update test_t2.py evals integration * test_05 * Update test_t2.py dtm sampler * Update build.ui validate tab tweak * Update test_t2.py validation * test_06_build_dtm * test06 update * test_07_build_valid * Update modcom.py improve some validation messaging * update test data * Update conftest.py clean up * test cleanups * finish test_t2 Update test_t2.py * Update conftest.py * Update model.ui * Update 06_tutorials.rst tweaks * Update test_t2.py fix writing * test_model01 * Create test_results.py start * test_model_02_r2 * Update test_model.py comments * move cf_fp fixture * Update test_results.py * Update test_t2.py * 60 add tests and documentation for new pdf reporter (#62) * add pdf report content * Create readme.md * Update readme.md * chore: Added new tests for pdf reporter function, bugfix: Fix for null check for file path and returning report object for test * Update test_results.py clean up imports * Added integration tests for plot risk and reporter functions; * Update 06_tutorials.rst minor grammar fix * Update test_results.py clean up imports * rename readme Co-authored-by: cefect <cefect@gmail.com> Co-authored-by: Seth Bryant <bryant.seth@gmail.com> * change official Q version to 3.22.8 * Update build.ui update version * Update requirements.txt * 63 person testing of feature report creating (#66) * fixed get_dFuncPlot * res reporter test fixes Update test_t2.py clean up Update test_t2.py fix report testers refactor res_02_reporter fix res_02_reporter * Update dialog.py clean up * Create CanFlood_report_res1_0805.pdf * Create pytest.ini * Update reporter.py clean up build_html add 'tag' to add_section add some checks to add_map * Update 06_tutorials.rst add more text to pdf reporter * clean up sphinx files * 2022-08-05 Changed Report Automator to Section 5.3.5, since BCA is already Section 5.3.4. Also changed one line in 06_tutorial.rst to add added detail. Changed 3 images to better reflect the current version of CanFlood and clarity * results reporter comboBox_rpt_vlay add vlay constraint and improve messaging * docs tutorial 2: add select finv note Co-authored-by: cefect <cefect@gmail.com> * update documentation * Update README.md cleanup merge fail * Update README.md * Update CONTRIBUTING.md * fix tab_551 * remove L3 stuff * Rtail clarification (#70) * Update build.ui add tooltip to event variables * Update riskcom.py improve error message for rtail * Migrate 3284 (#75) * build scripts * replace finv_tut2.gpkg * Update test_build.py update version check * test execution script * Update test_build.py * setFont depreciation * Update plug.py docstring * fix test_t2_A * Update README.md update version * Update 06_tutorials.rst * Changed subfolder from IBIGroupCanWest to NRCan in the README file (#81) * Squashed commit of the following: commit 071f3529c290acc2a554b6d4d15435093b66a121 Author: Seth Bryant <bryant.seth@gmail.com> Date: Thu Mar 23 14:27:20 2023 -0600 documentation building Update CONTRIBUTING.md commit ccd1abcae18db3d67d9b58fe60de0b0915989031 Author: Seth Bryant <bryant.seth@gmail.com> Date: Thu Mar 23 13:38:48 2023 -0600 clean up test batch files commit d21b0523a39e3b2c508c7e25b8199a439ea17947 Author: Seth Bryant <bryant.seth@gmail.com> Date: Thu Mar 23 13:23:26 2023 -0600 re organize dev scripts commit 7e39bbd328a7ce77ca83c954f1ba609a4a129f2b Author: Seth Bryant <bryant.seth@gmail.com> Date: Thu Mar 23 13:23:14 2023 -0600 remove old build files * 43 52 model tables are missing table numbers (#82) * Table 1-1 and Table 1-2 * Table IDs in Sections 4, 5, and Appendix A * Update .gitignore * Delete table_of_contents.rst not used anymore * Delete 07c_appendix_b.rst not used * convert table to csv and make numbered. * Update 01_introduction.rst * Update conf.py * Update 01_introduction.rst clean up tables --------- Co-authored-by: Seth Bryant <bryant.seth@gmail.com> * Update CONTRIBUTING.md * Update CONTRIBUTING.md * 87 area threshold rebase (#88) * add LFS * add inun_poly test data * Update test_build.py notes * test_build_rsamp_run * assert_rlay_resolution_match * add validation * Update rsamp.py promote assertion * replace with geojson * Update test_build_rsamp_run_res_20230401.pkl * rename build dir problem with pytest detection... * Update 20230305_r_ttl.pkl * Update metadata.txt * Update CONTRIBUTING.md add french instructions * Update DmgFuncs_NRPcont_20200517_inStk.xls add new curves from issue #13 * Update basic.py fix directory open * compatability fixes Update test_results.py relative pathing test_model_02_r2 relative pathing compatability fixes add relative pathing to test Update test_build.py fix pathing * Update README.md * remove dev move dev * update RTD build info * Update .readthedocs.yaml * Update .readthedocs.yaml * documentation dev work * Update README.md * Update test_build.py * Update README.md * Update README.md documentation badges * update contribution info * remove old binaries * contributing info * Update test_t2.py * Update CONTRIBUTING.md * clear build * Update canflood version to 1.2.1 (#98) * chpt 3 updates * Update CONTRIBUTING.md * add error note * add log file location to validation error message * 02_toolsets.WebConnections * Update conf.py fix version tag * Update README.md * remove L3 * Progress bar error Fix (#103) * notes and catches * Added Lambda function for explict int typecasting * Removed debug code and comments * add some comments and remove a prints tatement * Code cleanup and added QmessageLog * fix the underscore import --------- Co-authored-by: Seth Bryant <bryant.seth@gmail.com> Co-authored-by: Tanveer singh Bhatia <bhatiatanveer23@gmail.com> * Update requirements.txt * fix numref and links * PyTest not catching error (#108) * add pytest-qt to requirements for proper error catching --------- Co-authored-by: Tanveer singh Bhatia <bhatiatanveer23@gmail.com> Co-authored-by: Seth Bryant <bryant.seth@gmail.com> * Excel writer Issue (#109) clean up some error catches on teh validation add openpyxl as the explicate engine --------- Co-authored-by: Tanveer singh Bhatia <bhatiatanveer23@gmail.com> Co-authored-by: Seth Bryant <bryant.seth@gmail.com> * Deleted .gpkg files * Added corresponding geojson files * Modified tests and tutotrials to follow geojdon * Update 06_tutorials.rst * Fix for Box plot not coming up (#113) * Fix for Box plot not coming up * Updated plots for model and build --------- Co-authored-by: Tanveer singh Bhatia <bhatiatanveer23@gmail.com> * Handle Relative Filepath (#110) closes issue * Updated control files with relative path, removed hardcoded path * Added logic to handle relative path --------- Co-authored-by: Tanveer singh Bhatia <bhatiatanveer23@gmail.com> Co-authored-by: Seth Bryant <bryant.seth@gmail.com> * 107 module scipyintegrate has no attribute trapz (#112) * fix modcom absolute_fp improper equals * fix spelling mistakes * fix tut7 control file pathing * Update dialog.py remove not implemented check * Update validator.py pass absolute_fp * Update modcom.py clean up docstrings * fix file handling of tests * add depenency test * Update pull_request_template.md * 22 raster prep crash on load tutorial 5 (#116) * add test_build_rsamp_runPrep * Update 06_tutorials.rst * fix relative filepath handling (#117) * absolute_fp checked while updating control file * updated control file for relative path * Removed unsed argument * Updated test to check relative paths * Added a test folder for second case (False) absolute_fp * update some comments * comments * Update test_tutorial_02.py * Updated Test and dmg file * Update CanFlood_control_01.txt spelling * comment and logging updates * clean up entry point and rename * add version tag to build ui * move definitions file * add test_sensi * test rfda * Create test_dikes.py * pythonpath import fix * fix version tag * Create CanFlood - tutorial 2.qgz * plugin setup working directory to cf_fp --------- Co-authored-by: Tanveer singh Bhatia <bhatiatanveer23@gmail.com> Co-authored-by: Seth Bryant <bryant.seth@gmail.com> * 101 webconnections not being added (#115) * Web connections proof of concept * Updated with relative paths instead of hardcoded path * Added arcgis, wms and wcs connections * replaced print statement with proper error * Added test for Web connections * Removed unused ini file path * Updated test to ensure ini files updated to pass test * Update test_webconnections.py rename * Refactored test code * Update test_webconnections.py * update gitignore * Update webConnections.py * Removed the non working links --------- Co-authored-by: Tanveer singh Bhatia <bhatiatanveer23@gmail.com> Co-authored-by: Seth Bryant <bryant.seth@gmail.com> * Update README.md (#118) * weaken requirements * Update .gitignore * Update .gitignore * v1.2.1 release candidate (2) (#119) * Update README.md * Added warning comments to evaluate warnnings * Resolved warnings * fix plot not showing up on compare results view * updated Tutorial 2b * Updated Canflood Zip * Update curvePlot.py * tweaks and requirement changes * clean up results tests * add test_results_02_runcompare test case * reduce some logging * fix the comparison tool * clean up test case * modcom . fix relative filepath catch * clean up log * Update pytest.ini * clean up plt_window * results.dialog fix run_plotRisk kwargs * implement radioButton_s_saveToFile * Updated Plt window logic for showing plots * remove a link --------- Co-authored-by: Tanveer singh Bhatia <bhatiatanveer23@gmail.com> Co-authored-by: ceftanveer <tanveer@ceflood.com> * add zips --------- Co-authored-by: Dhanyatha Harish <dhanyatha.harish@ibigroup.com> Co-authored-by: Ben Maxwell <103564326+BenMaxIBI@users.noreply.github.com> Co-authored-by: blairscriven <72718063+blairscriven@users.noreply.github.com> Co-au B560 thored-by: GrahamD-IBI <124713071+GrahamD-IBI@users.noreply.github.com> Co-authored-by: ceftanveer <tanveer@ceflood.com> Co-authored-by: Tanveer singh Bhatia <bhatiatanveer23@gmail.com>