create account

Fix "Selected time in notstrictly monotonic" error when loading csv by mactro

View this thread on: hive.blogpeakd.comecency.com
· @mactro ·
$66.02
Fix "Selected time in notstrictly monotonic" error when loading csv
## Problem:
It is a fix for https://github.com/facontidavide/PlotJuggler/issues/61

The first time I load a csv file to PlotJuggler there is a pop-up asking to select the time axis. The file is loaded correctly. When I want to load another file with same data structure, there is "Selected time in notstrictly monotonic" error.

The only way I can get data to be loaded correctly then, is to change the name of time axis in the csv.

## Fix:
The cause of a problem was a wrong index to the time axis when loading a second file.

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@mactro/fix-selected-time-in-notstrictly-monotonic-error-when-loading-csv">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authormactro
permlinkfix-selected-time-in-notstrictly-monotonic-error-when-loading-csv
categoryutopian-io
json_metadata"{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":111388488,"name":"PlotJuggler","full_name":"mactro/PlotJuggler","owner":{"login":"mactro","id":3625671,"avatar_url":"https://avatars1.githubusercontent.com/u/3625671?v=4","gravatar_id":"","url":"https://api.github.com/users/mactro","html_url":"https://github.com/mactro","followers_url":"https://api.github.com/users/mactro/followers","following_url":"https://api.github.com/users/mactro/following{/other_user}","gists_url":"https://api.github.com/users/mactro/gists{/gist_id}","starred_url":"https://api.github.com/users/mactro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mactro/subscriptions","organizations_url":"https://api.github.com/users/mactro/orgs","repos_url":"https://api.github.com/users/mactro/repos","events_url":"https://api.github.com/users/mactro/events{/privacy}","received_events_url":"https://api.github.com/users/mactro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mactro/PlotJuggler","description":"The Time Series visualization tool that you deserve","fork":true,"url":"https://api.github.com/repos/mactro/PlotJuggler","forks_url":"https://api.github.com/repos/mactro/PlotJuggler/forks","keys_url":"https://api.github.com/repos/mactro/PlotJuggler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mactro/PlotJuggler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mactro/PlotJuggler/teams","hooks_url":"https://api.github.com/repos/mactro/PlotJuggler/hooks","issue_events_url":"https://api.github.com/repos/mactro/PlotJuggler/issues/events{/number}","events_url":"https://api.github.com/repos/mactro/PlotJuggler/events","assignees_url":"https://api.github.com/repos/mactro/PlotJuggler/assignees{/user}","branches_url":"https://api.github.com/repos/mactro/PlotJuggler/branches{/branch}","tags_url":"https://api.github.com/repos/mactro/PlotJuggler/tags","blobs_url":"https://api.github.com/repos/mactro/PlotJuggler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mactro/PlotJuggler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mactro/PlotJuggler/git/refs{/sha}","trees_url":"https://api.github.com/repos/mactro/PlotJuggler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mactro/PlotJuggler/statuses/{sha}","languages_url":"https://api.github.com/repos/mactro/PlotJuggler/languages","stargazers_url":"https://api.github.com/repos/mactro/PlotJuggler/stargazers","contributors_url":"https://api.github.com/repos/mactro/PlotJuggler/contributors","subscribers_url":"https://api.github.com/repos/mactro/PlotJuggler/subscribers","subscription_url":"https://api.github.com/repos/mactro/PlotJuggler/subscription","commits_url":"https://api.github.com/repos/mactro/PlotJuggler/commits{/sha}","git_commits_url":"https://api.github.com/repos/mactro/PlotJuggler/git/commits{/sha}","comments_url":"https://api.github.com/repos/mactro/PlotJuggler/comments{/number}","issue_comment_url":"https://api.github.com/repos/mactro/PlotJuggler/issues/comments{/number}","contents_url":"https://api.github.com/repos/mactro/PlotJuggler/contents/{+path}","compare_url":"https://api.github.com/repos/mactro/PlotJuggler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mactro/PlotJuggler/merges","archive_url":"https://api.github.com/repos/mactro/PlotJuggler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mactro/PlotJuggler/downloads","issues_url":"https://api.github.com/repos/mactro/PlotJuggler/issues{/number}","pulls_url":"https://api.github.com/repos/mactro/PlotJuggler/pulls{/number}","milestones_url":"https://api.github.com/repos/mactro/PlotJuggler/milestones{/number}","notifications_url":"https://api.github.com/repos/mactro/PlotJuggler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mactro/PlotJuggler/labels{/name}","releases_url":"https://api.github.com/repos/mactro/PlotJuggler/releases{/id}","deployments_url":"https://api.github.com/repos/mactro/PlotJuggler/deployments","created_at":"2017-11-20T09:23:58Z","updated_at":"2017-11-20T09:24:01Z","pushed_at":"2017-11-20T09:39:17Z","git_url":"git://github.com/mactro/PlotJuggler.git","ssh_url":"git@github.com:mactro/PlotJuggler.git","clone_url":"https://github.com/mactro/PlotJuggler.git","svn_url":"https://github.com/mactro/PlotJuggler","homepage":"https://facontidavide.github.io/PlotJuggler","size":20985,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","score":13.649557},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","opensource","coding","programming"]}"
created2017-11-20 09:54:30
last_update2017-11-20 09:54:30
depth0
children5
last_payout2017-11-27 09:54:30
cashout_time1969-12-31 23:59:59
total_payout_value46.671 HBD
curator_payout_value19.352 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length730
author_reputation865,272,238,829
root_title"Fix "Selected time in notstrictly monotonic" error when loading csv"
beneficiaries
0.
accountespoem
weight115
1.
accountfreedom
weight659
2.
accountlafona-miner
weight13
3.
accountmisterdelegation
weight549
4.
accountned
weight544
5.
accountruah
weight60
6.
accountsteempty
weight11
7.
accountwackou
weight53
max_accepted_payout1,000,000.000 HBD
percent_hbd50
post_id20,962,231
net_rshares33,343,139,720,572
author_curate_reward""
vote details (37)
@arcange ·
Congratulations @mactro!
Your post was mentioned in the [hit parade](https://steemit.com/hit-parade/@arcange/daily-hit-parade-for-newcomers-20171120) in the following category:

* Pending payout - Ranked 2 with $ 69,77
properties (22)
authorarcange
permlinkre-fix-selected-time-in-notstrictly-monotonic-error-when-loading-csv-20171120t185242000z
categoryutopian-io
json_metadata""
created2017-11-21 17:52:45
last_update2017-11-21 17:52:45
depth1
children0
last_payout2017-11-28 17:52:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length219
author_reputation1,146,621,535,585,811
root_title"Fix "Selected time in notstrictly monotonic" error when loading csv"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,114,413
net_rshares0
@jefpatat ·
Thank you for the contribution. It has been approved.

Next time please refer to the commit or pull request to prove your work better.

[[utopian-moderator]][moderators]

[moderators]:  https://utopian.io/moderators
properties (22)
authorjefpatat
permlinkre-mactro-fix-selected-time-in-notstrictly-monotonic-error-when-loading-csv-20171120t102052864z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2017-11-20 10:20:42
last_update2017-11-20 10:20:42
depth1
children2
last_payout2017-11-27 10:20:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length215
author_reputation26,609,526,234,408
root_title"Fix "Selected time in notstrictly monotonic" error when loading csv"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id20,963,995
net_rshares0
@mactro ·
One thing is not exactly clear for me: if I find a bug in some Github project, is it ok, to first add an issue on Github and then add a bug here? Or Utopian policy is to have bugs reported only on Utopian? 
properties (22)
authormactro
permlinkre-jefpatat-re-mactro-fix-selected-time-in-notstrictly-monotonic-error-when-loading-csv-20171120t105858360z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2017-11-20 10:58:57
last_update2017-11-20 10:58:57
depth2
children1
last_payout2017-11-27 10:58:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length206
author_reputation865,272,238,829
root_title"Fix "Selected time in notstrictly monotonic" error when loading csv"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id20,966,596
net_rshares0
@ecoinstant ·
I too am interested in this response.  How about adding the bug and then adding the fix?  Can these be two articles in quick succession?
properties (22)
authorecoinstant
permlinkre-mactro-re-jefpatat-re-mactro-fix-selected-time-in-notstrictly-monotonic-error-when-loading-csv-20171120t115218913z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2017-11-20 11:52:18
last_update2017-11-20 11:52:18
depth3
children0
last_payout2017-11-27 11:52:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length136
author_reputation847,614,012,647,141
root_title"Fix "Selected time in notstrictly monotonic" error when loading csv"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id20,970,612
net_rshares0
@utopian-io ·
### Hey @mactro I am @utopian-io. I have just upvoted you at 25% Power!
#### Achievements
- You have less than 500 followers. Just gave you a gift to help you succeed!
- This is your first accepted contribution here in Utopian. Welcome!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/2rSx9Eu">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy to my Witness</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
authorutopian-io
permlinkre-mactro-fix-selected-time-in-notstrictly-monotonic-error-when-loading-csv-20171121t001439132z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2017-11-21 00:14:39
last_update2017-11-21 00:14:39
depth1
children0
last_payout2017-11-28 00:14:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,068
author_reputation152,955,367,999,756
root_title"Fix "Selected time in notstrictly monotonic" error when loading csv"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id21,032,394
net_rshares0