wsp-sag / Lasso

Python package of utilities for Network Wrangler
https://wsp-sag.github.io/Lasso/
Apache License 2.0
5 stars 3 forks source link

[BUG] Cube Log file to Project Card fails when only Node changes are made #123

Open DavidOry opened 3 years ago

DavidOry commented 3 years ago

Describe the bug

When processing a Cube log file that adds a node, a logic error is triggered in the code and the software fails. The code is expecting link changes to be processed.

To Reproduce

Steps to reproduce the behavior:

  1. See the notebook here.

Failing tests

Triggering line of code

Here.

Thoughts on resolution

The above line of code should live under the if statement here. If the _consolidate_actions method is not run, the OPERATION_final column is not created, and the _process_link_deletions method fails.

Full stack trace

See above notebook.

Environment

Operating system: Context (conda, jupyter, etc): See above notebook Environment (e.g. output from conda list): See above notebook