Skip to content

Export Project VIC writes custom category codes (6 and up) into Category #242

Closed

Description

@abrignoni

Export Project VIC writes a file's category code into Category as is, including the examiner's own categories (code 6 and up): projectvic.py#L542. Those files are also marked IsPrecategorized.

On v2026.5.2, a case with files in a custom category exported 59 records with Category: 6. The category's name is not written anywhere in the file, so whatever reads it next gets a bare 6 with no way to know what it means. I have not checked what Project VIC tools do with a code above 5 on import.

Options:

  • leave custom categories out of Category (null) and keep the examiner's decision in GLEAPP only
  • map each custom category to one of the Project VIC codes, chosen by the examiner
  • keep writing the code, and warn at export time that codes 6 and up are GLEAPP's own

Related, docs only: MANUAL.md says the export writes Category, Comments and Tags back (MANUAL.md#L1183), while export_vic says Tags and Series are not written back (projectvic.py#L510) and only sets Category, IsPrecategorized and Comments.

Activity

  1. added a commit that references this issue on Nov 2, 2026
    7a465d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions