Closed carloshorn closed 4 years ago
Sounds good!
@carloshorn So this is ready to merge? @ninahakansson FYI, this PR will slightly change the calibrated data
@carloshorn So this is ready to merge?
Please note that the script requires python 3 (e.g. yield from
is not valid in python 2), while PyGAC also works with python 2.
If this is okay, it is ready to merge.
I think that's fine, it's just a tool. But could you please raise an exception if someone tries to call it with python 2?
The example yield from
already raises a SyntaxError using python 2. I could replace the first line with #/usr/bin/env/ python3
, but I don't know if this has any side effects when running the setup.py
.
What about something more verbose for an unexperienced user? RuntimeError: This tool is Python 3 only
or something like that?
Yes, that would be nice, but unfortunately, the syntax error is thrown while the python interpreter reads the script. I don't get to the point where I could implement it. Of cause, I could rewrite this line with for item in items: yield item
, but I fear that something else pops up next and this will just be the first round of ugly python 2 backward compatibility rewriting....
Oh sorry, now I see the problem. My bad! Then it's fine of course.
This PR should correct all typos mentioned in #66 and also correct the the intercept coefficient mentioned in #57.
Therefore, it should close #57 and close #66.
Since the coefficients are currently coming from PATMOS-x, should I add the script to convert these tar balls to PyGAC json files to the repository?