Closed Arnaud-D closed 2 years ago
Alternatively, kosmorro could guess the desired output based on the extension of the output argument, and inform the user that this decision has been made.
This is already implemented and will be available in v1.0 (#197) :)
Thanks for the bug report, I'll check what's happening there
After some testing, it looks like the issue described here does not happen in the development branch for v1.0, so I don't think it's worth a fix for v0.10. As a workaround, you may redirect the output with the shell:
kosmorro --format=json > output.json
@Arnaud-D Does it sound good for you?
Sounds good. :+1:
I have searched for an opened issue and didn't find my bug
Version of Kosmorro
0.10
Version of Python
3.10
Operating system
Linux
Installation source
PyPI
Bug description
When launching with
kosmorro --output=ephemeride.pdf
, kosmorro crashes with the following trace:I would expect an error for missing/wrong parameters instead of a crash.
Alternatively, kosmorro could guess the desired output based on the extension of the output argument, and inform the user that this decision has been made.
Also,
kosmorro --format=json --output=ephemeride.json
andkosmorro --format=text --output="ephemeride.txt"
crash with similar errors.Here the expected behavior would be to write a file with the json or text output.
Alternatively kosmorro could ignore the parameter and warn the user about it.
For comparison, the following commands works fine: