Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/instructions/cli.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
applyTo: "cli/**"
description: Instructions for developing and validating the UTRANS CLI
---

# UTRANS CLI Development Instructions

- Use the existing Conda environment named `utrans-tools` for CLI development and validation.
- Activate it before running Python, ArcPy, pytest, or CLI commands:

```powershell
conda activate utrans-tools
```
5 changes: 3 additions & 2 deletions cli/src/utrans/etl_mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,12 @@ def apply_mapper(feature_class: str, profile: CountyProfile, utrans_roads: str)
if resolved is not None:
row[target_index] = resolved
elif has_value(row[source_index]):
row[target_index] = source_value
notes_index = indexes.get("UTRANS_NOTES")
if notes_index is not None:
row[notes_index] = (
f"{row[notes_index] or ''}{target}: {row[source_index]}; "
)
f"{row[notes_index] or ''}{target}: {source_value}; "
)[:200]
Comment thread
stdavis marked this conversation as resolved.
for source, alias in parse_sources:
source_index = indexes.get(source.upper())
if source_index is None:
Expand Down