diff --git a/.github/instructions/cli.instructions.md b/.github/instructions/cli.instructions.md new file mode 100644 index 0000000..2b858da --- /dev/null +++ b/.github/instructions/cli.instructions.md @@ -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 +``` \ No newline at end of file diff --git a/cli/src/utrans/etl_mappers.py b/cli/src/utrans/etl_mappers.py index c2a7567..4f2dbb0 100644 --- a/cli/src/utrans/etl_mappers.py +++ b/cli/src/utrans/etl_mappers.py @@ -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] for source, alias in parse_sources: source_index = indexes.get(source.upper()) if source_index is None: