Conversation
|
Hi @thiagovmdon, that looks great so far. A few things though:
Let me know on what you want to work or if I should take over this branch. |
Hi Freddy. Thanks! I left with some parts for you to do, but I can also do myself the tests! I assume in the end you do a quick overview check, so no worries. I can take care of the points!
|
|
I see. No worries, I can do the tests, which is a trivial thing to add given the current state of your code. No worries to spend time understanding the test structure. I'll wait for you to finish the other tasks, then I add the test. Re terms of use / license: I have no good plan yet. For Norway, see #70 I added simple a link to their documentation to the doc string which then appears in the docs, see https://rivretrieve-python.readthedocs.io/en/latest/fetchers/norway.html For now, I think it is enough if we include the information that we have, maybe with a link, to the doc-string. Later, we can see if we want to show this data differently. Re docs: The changes required a trivial, but I will let you look into this, as this is maybe a good way to understand the sphinx doc structure and to test-compile them locally, if you haven't done so before. Could be helpful in the future to know how to manually work on the docs. |
Awesome. All clear then. I will make the changes, and about the docs it is exactly what I thought: It will be very helpful eventually. I will let you know as soon as they're made. |
a960ae4 to
93ad538
Compare
Hi Freddy. I think it is all right now. Let me know if I missed something. I will update the Korean branch accordingly as well. The website works fine, and we could perhaps think of a standardize way to write the docstrings. I liked the way you put, but for Germany I just added a link tot he documentation too. where there is also the details about how to use the API. regarding the license, it does not state things about api limits, but it points to the official data license. |
|
@thiagovmdon I added the unit test. Just two things I noticed: The script that you added to tests/ was the script I usually put under examples/ (i.e. a small script that allows the user to quickly download and plot the timeseries for one station). While the unittest is intented to test the implemented code behavior. The other thing is that for .rst files, it is important that the underlining of the heading is exactly as long as the title. If that is not the case, the page is not rendered in the docs. I actually thought that it would also raise an error when building the docs, I think this is at least what happened in the past. The only way how I noticed it now is that when I built the docs offline and opened the index.html in the browser, I saw that the Berlin fetcher was missing. I will now go ahead and merge this into main |
|
Hi @kratzert, about the test it was my bad! I did the test locally and forgot to ignore it... Sorry. About the docs, I had the impression that it worked well locally when I opened it here. Perhaps the problem was when I switched the order to put the Berliner alphabetically? For the next I will keep this length constraint into consideration. Thanks for the input. |
* Add Germany-Berlin fetcher (Fixes #62) * Add Germany-Berlin fetcher updated (Fixes #62) * Add Germany-Berlin fetcher updated with ruff formating (Fixes #62) * Update .gitignore * Update function to return full metadata plus rst files * Fix rst title format * Add unit test * Add example script for Berlin fetcher --------- Co-authored-by: Frederik Kratzert <f.kratzert@gmail.com>
Related to issue #62
Implements data fetcher for Germany-Berlin (Wasserportal Berlin) following the RiverDataFetcher base class.
Includes: