Reading weight graphs#1
Open
MoriTanosuke wants to merge 6 commits intoericblue:masterfrom
MoriTanosuke:master
Open
Reading weight graphs#1MoriTanosuke wants to merge 6 commits intoericblue:masterfrom MoriTanosuke:master
MoriTanosuke wants to merge 6 commits intoericblue:masterfrom
MoriTanosuke:master
Conversation
added 4 commits
January 11, 2011 06:19
…t not working when I add a similar line for weight in script/test_client.pl...
…ing "1" and not the weight.
Owner
|
Hi, I don't have time to review the code in detail right now, but at a glance it might be something as simple as string concatenation in your test client script. It's more than likely returning the value "1" due to the way you're printing out the value of get_weight_log. The return value is an array, and since you're using a period (.) to concatenate the string it's treating the array as a scalar (1 = total elements in the array). Try using a comma instead. Also, when in doubt try using Data::Dumper to print out the return call. |
Author
|
Ah, thanks for the hint. The different data structures and the implicit conversions in Perl are my main enemy. I try to fix this in the evening. |
… converted from array to scalar in API.pm, line 574+.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I tried to add weight graph parsing to the API today and I can read the description with the actual values and parse it. But I could only print it to the debug logger, but when I tried to use it from the
test_client.plscript, it is always returning1instead of my current weight...Can you have a look at it and give me a hint for a solution?