Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rs_metric_engine XML Augmentor failure #1021

Open
MattReimer opened this issue Sep 19, 2024 · 0 comments
Open

rs_metric_engine XML Augmentor failure #1021

MattReimer opened this issue Sep 19, 2024 · 0 comments
Assignees
Labels
🐛 bug Something isn't working DataExchange_3.0 2022 Warehouse Refactor pkg:RME

Comments

@MattReimer
Copy link
Member

MattReimer commented Sep 19, 2024

There are two problems here:

  1. rme_rs.py should succeed (ideally)
  2. rme_rs.py should fail correctly. Right now it's allowing upload to the warehouse which is probably not what we want. Likely it just means adding if [[ $? != 0 ]]; then return 1; fi to the shell script should fix this (maybe we should audit the other shell scripts too to make sure the other _rs.py scripts have this behaviour too.

Original logs:
CYBERCASTOR-0296ec73-d2bc-4c55-aa0c-a2f16088f231_bfdc0408-0acc-4c6c-9575-2e8b8dd06eaa.log


[debug] [Riverscapes Metrics Report] Report Writing Completed
--
[info] [add_html_report] Report node created: /usr/local/data/output/rme/outputs/rme_fws_perennial.html
[info] [Report] Creating report at /usr/local/data/output/rme/outputs/rme_fws_perennial.html
[info] [MakeDir] Folder not found. Creating: /usr/local/data/output/rme/outputs/images/fws_perennial
[debug] [Riverscapes Metrics Report] Report Writing Completed
[info] [Riverscapes Metric Engine] Riverscapes Metric Engine Finished
ERROR 1: Empty geometries cannot be constructed
ERROR 1: Empty geometries cannot be constructed
ERROR 1: Empty geometries cannot be constructed
[info] [XML Augmenter] ======================================================================================
[info] [XML Augmenter]                XML Augmenter: /usr/local/data/output/rme/project.rs.xml
[info] [XML Augmenter] ======================================================================================
[info] [XML Augmenter]
[error] [XML Augmenter] 'RSProject' object has no attribute 'XMLBuilder'
Traceback (most recent call last):
File "/usr/local/src/riverscapes-tools/packages/rme/rme/rme_rs.py", line 48, in main
out_prj.rs_meta_augment(
File "/usr/local/src/riverscapes-tools/lib/commons/rscommons/classes/rs_project.py", line 618, in rs_meta_augment
Project Meta: Model Version: 2.0.1
--
Date Created: 2024-09-19T20:21:49.084499
Model Documentation: https://tools.riverscapes.net/rme
HUC: 1114010907
Hydrologic Unit Code: 1114010907
RME Version: 2.0.1
RME Timestamp: 1726777309
Runner: Cybercastor
ProcTimeS: 972.61
Processing Time: 16:12 minutes
Watershed: Headwaters Saline River
@MattReimer MattReimer added 🐛 bug Something isn't working DataExchange_3.0 2022 Warehouse Refactor pkg:RME labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working DataExchange_3.0 2022 Warehouse Refactor pkg:RME
Projects
None yet
Development

No branches or pull requests

2 participants