DHI / DHI/mikepluspy

get_field_values has strange behaviour when passing a single field not in a list.

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
25
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Using a single field for get_field_values results in the following behaviour:

![image](https://github.com/user-attachments/assets/a0f24264-0af2-4bd7-95e5-2ef81ce40b1d)

The user should be able to provide a single field, or a list of fields, and receive the expected output. The above example works fine if the single field is put into a list. So that's a possible workaround, but it's inconvenient and unclear for the user.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the get_field_values entry point and reproduce the reported behavior with a single field and with that field wrapped in a list. Compare the outputs and use the list case as the reference; done means both accepted inputs return the expected equivalent result.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.