fix: Type error in GCBM API causes (fatal) - main(306) - Value too large. error. #197
fix: Type error in GCBM API causes (fatal) - main(306) - Value too large. error. #197Freeman-kuch wants to merge 14 commits into
(fatal) - main(306) - Value too large. error. #197Conversation
| dictionary["layer_type"] = "GridLayer" | ||
| dictionary["layer_data"] = "Int16" | ||
| dictionary["nodata"] = nodatam[1] | ||
| dictionary["nodata"] = 32767 |
There was a problem hiding this comment.
@Namyalg @Janvi-Thakkar @SanjaySinghRajpoot @YashKandalkar - what do you think of this solution?
There was a problem hiding this comment.
I think, as a temporary fix, we can probably go ahead with this
There was a problem hiding this comment.
We might also need a comment explaining this temporary solution, so that other contributors know why the hard coded value is there.
There was a problem hiding this comment.
@Freeman-kuch - can you please add documentation to this patch? Using a hard coded number is not a good long term solution, but it will do for now.
There was a problem hiding this comment.
@aornugent I'm not so sure i understand what you mean about adding documentation, can you help out ?
There was a problem hiding this comment.
I mean leaving a comment in the code to explain your change. Without documentation it's hard for others to understand why this value is set.
Maybe something like:
# FIXME: hard coded nodata value is a temporary solution,
but should instead come from the input data source.
Namyalg
left a comment
There was a problem hiding this comment.
Yes, I think we can add a comment and add the link to the issue, so the problem becomes clear
HarshCasper
left a comment
There was a problem hiding this comment.
Please run black and flake8 on your code and fix all formatting/style issues.
I did Run both and no issue was raised |
c9afe5e to
f4d83e0
Compare
…oja-global#181) * refactor: moved get_config_templates, get_modules_cbm_config, get_provider_config to preprocess.py file Signed-off-by: khanjasir90 <khanmohdjasir@gmail.com> * app.py and preprocess.py linted Signed-off-by: khanjasir90 <khanmohdjasir@gmail.com> Signed-off-by: khanjasir90 <khanmohdjasir@gmail.com> Signed-off-by: Freeman <freemanoparaocha@gmail.com>
…cs (moja-global#164) * feat: added fluro and GCBM dev docs Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> * chores: furo added to requirements Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> * chores: restructed Deployment docs Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> Signed-off-by: Freeman <freemanoparaocha@gmail.com>
* feat: autoapi implemented * chore: autoapi added to requirements Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> * CI fix Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> Signed-off-by: Freeman <freemanoparaocha@gmail.com>
docs: Add expected response codes on sucess to the GCBM docs Adds response codes to the GCBM curl documentation. Also changes the format of the document to be more navigable. Signed-off-by: Amit <amitkulkarni2028@gmail.com> Signed-off-by: Amit <amitkulkarni2028@gmail.com> Co-authored-by: Namya LG <53875297+Namyalg@users.noreply.github.com> Signed-off-by: Freeman <freemanoparaocha@gmail.com>
…lobal#185) * feat: added endpoint to return .json for the input .tiff file Signed-off-by: khanjasir90 <khanmohdjasir@gmail.com> * feat: updated endpoint with specified changes and some constraints Signed-off-by: khanjasir90 <khanmohdjasir@gmail.com> * feat: formatted code with black Signed-off-by: khanjasir90 <khanmohdjasir@gmail.com> * updated minor typos Signed-off-by: khanjasir90 <khanmohdjasir@gmail.com> Signed-off-by: khanjasir90 <khanmohdjasir@gmail.com> Co-authored-by: Namya LG <53875297+Namyalg@users.noreply.github.com> Signed-off-by: Freeman <freemanoparaocha@gmail.com>
* feat: updated curl cmds Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> * db added and doc formated Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> * example text fixed Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> Signed-off-by: SanjaySinghRajpoot <iamsanjayrajpoot@gmail.com> Signed-off-by: Freeman <freemanoparaocha@gmail.com>
…of rest api gcbm (moja-global#195) Signed-off-by: olalekan temitayo <olalekantemitayo7@gmail.com> Signed-off-by: olalekan temitayo <olalekantemitayo7@gmail.com> Signed-off-by: Freeman <freemanoparaocha@gmail.com>
* Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * changed the endpoint name * Update app.py * Update README.md Co-authored-by: Harsh Mishra <erbeusgriffincasper@gmail.com> Signed-off-by: Freeman <freemanoparaocha@gmail.com>
Signed-off-by: Freeman <freemanoparaocha@gmail.com>
Signed-off-by: Freeman <freemanoparaocha@gmail.com>
Signed-off-by: olalekan temitayo <olalekantemitayo7@gmail.com> Signed-off-by: olalekan temitayo <olalekantemitayo7@gmail.com> Signed-off-by: Freeman <freemanoparaocha@gmail.com>
f4d83e0 to
bb8daaa
Compare
Pull Request Template
Description
When /dynamic endpoint is visited during simulation, it raises Type error in GCBM API causes
(fatal) - main(306) - Value too large.error with config filesFixes #136
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
I tested locally using Postman and added the necessary config files in GCBM_New_Demo_Run. The simulation did run and didn't raise further errors.
...
Checklist: