equinor / equinor/res2df

[trans] Misleading error when --vectors is not correct

Open
#360 2 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Python
Stars
37
Forks
38
Avg merge
1h 45m
Merged PRs (30d)
1

Description

If a user asks for a boundaryfilter but is not giving in any vectors, then the error message is strange:
```
$ ecl2csv trans .NOSIMMED.DATA --boundaryfilter -o -
Traceback (most recent call last):
[snip]
File "/prog/res/komodo/2021.08.03-py36-rhel7/root/lib/python3.6/site-packages/ecl2df/trans.py", line 194, in df
assert len(vectors) == 1
AssertionError
```

where the correct command line is:
`$ ecl2csv trans .NOSIMMED.DATA --boundaryfilter --vectors FIPNUM
`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.