-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tests #33
base: main
Are you sure you want to change the base?
Fix tests #33
Conversation
@isedwards there is one more failing test which is not related to plots but a table. This is the failing test
I have checked the generated and actual files manually, and they do not look the same. You can reproduce the result by running Then you can put this file https://github.com/faysal-ishtiaq/opencdms-process/blob/rpy2Test/tests/data/daily_niger.csv |
@faysal-ishtiaq If it helps, then I could look at |
@lloyddewit, yes please - let us know if you can see what is causing the difference |
opencdms_process/cli.py
Outdated
click.echo("Replace this message by putting your code into " | ||
"opencdms_process.cli.main") | ||
click.echo( | ||
"Replace this message by putting your code into " "opencdms_process.cli.main" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the formatting change here accidental? It looks a bit odd being >79 chars and also the unnecessary concatenation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was due to black, not formatting strings. I have added a make command in the makefile with a preview flag for black so that black takes care of strings as well.
Here is the generated csv file |
@lloyddewit did you get a chance to look at what may be causing the difference with the inventory table? |
@isedwards @faysal-ishtiaq |
@isedwards @faysal-ishtiaq I suspect that our development environments are behaving slightly differently in the line below: In summary, I think your results are correct as far as the user is concerned. The test comparison fails because missing values are written differently to the csv file (or potentially represented differently in the pandas data frame). In the context of your current work, how important is this? This code requires Python, R and many third-party R/Python packages. The dependencies are complex and it's hard to get them identical in different development environments. In the future, should we consider having a reference installation and use this to run the unit tests? |
Just for info: the name of this repo recently change from |
No description provided.