{"action":"created","comment":{"url":"https://api.github.com/repos/flow123d/flow123d/pulls/comments/46537422","id":46537422,"diff_hunk":"@@ -347,17 +347,73 @@ StorageBase * ReaderToStorage::make_storage(PathBase &p, const Type::Array *arra\n                     << EI_ErrorAddress(p.as_string()) << EI_InputType(array->desc()) );\n         }\n     } else {\n-        // try automatic conversion to array with one element\n-        if ( array->match_size( 1 ) ) {\n-            StorageArray *storage_array = new StorageArray(1);\n-            const Type::TypeBase &sub_type = array->get_sub_type();\n-            storage_array->new_item(0, make_storage(p, &sub_type) );\n-\n-            return storage_array;\n-        } else {\n-            THROW( ExcInputError() << EI_Specification(\"Automatic conversion to array not allowed. The value should be '\" + p.get_node_type(ValueTypes::array_type) + \"', but we found: \")\n-                    << EI_ErrorAddress(p.as_string()) << EI_JSON_Type( p.get_node_type(p.get_node_type_index()) ) << EI_InputType(array->desc()) );\n+    \t// if transposition is carried, only conversion to array with one element is allowed\n+    \tif (try_transpose_read_) {\n+\t\t\t// try automatic conversion to array with one element\n+\t\t\tif ( array->match_size( 1 ) ) {\n+\t\t\t\tStorageArray *storage_array = new StorageArray(1);\n+\t\t\t\tconst Type::TypeBase &sub_type = array->get_sub_type();\n+\t\t\t\tstorage_array->new_item(0, make_storage(p, &sub_type) );\n+\n+\t\t\t\treturn storage_array;\n+\t\t\t} else {\n+\t\t\t\tTHROW( ExcInputError() << EI_Specification(\"Automatic conversion to array not allowed. The value should be '\" + p.get_node_type(ValueTypes::array_type) + \"', but we found: \")\n+\t\t\t\t\t\t<< EI_ErrorAddress(p.as_string()) << EI_JSON_Type( p.get_node_type(p.get_node_type_index()) ) << EI_InputType(array->desc()) );\n+\t\t\t}\n         }","path":"src/input/reader_to_storage.cc","position":45,"original_position":45,"commit_id":"308fe58792aa0468b815c76664fc0756d7af1f4f","original_commit_id":"308fe58792aa0468b815c76664fc0756d7af1f4f","user":{"login":"jbrezmorf","id":326204,"avatar_url":"https://avatars.githubusercontent.com/u/326204?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrezmorf","html_url":"https://github.com/jbrezmorf","followers_url":"https://api.github.com/users/jbrezmorf/followers","following_url":"https://api.github.com/users/jbrezmorf/following{/other_user}","gists_url":"https://api.github.com/users/jbrezmorf/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrezmorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrezmorf/subscriptions","organizations_url":"https://api.github.com/users/jbrezmorf/orgs","repos_url":"https://api.github.com/users/jbrezmorf/repos","events_url":"https://api.github.com/users/jbrezmorf/events{/privacy}","received_events_url":"https://api.github.com/users/jbrezmorf/received_events","type":"User","site_admin":false},"body":"add else here to improve readibility","created_at":"2015-12-03T10:54:17Z","updated_at":"2015-12-03T10:54:17Z","html_url":"https://github.com/flow123d/flow123d/pull/475#discussion_r46537422","pull_request_url":"https://api.github.com/repos/flow123d/flow123d/pulls/475","_links":{"self":{"href":"https://api.github.com/repos/flow123d/flow123d/pulls/comments/46537422"},"html":{"href":"https://github.com/flow123d/flow123d/pull/475#discussion_r46537422"},"pull_request":{"href":"https://api.github.com/repos/flow123d/flow123d/pulls/475"}}},"pull_request":{"url":"https://api.github.com/repos/flow123d/flow123d/pulls/475","id":52387873,"html_url":"https://github.com/flow123d/flow123d/pull/475","diff_url":"https://github.com/flow123d/flow123d/pull/475.diff","patch_url":"https://github.com/flow123d/flow123d/pull/475.patch","issue_url":"https://api.github.com/repos/flow123d/flow123d/issues/475","number":475,"state":"open","locked":false,"title":"Df array transposition","user":{"login":"dflanderka","id":5627762,"avatar_url":"https://avatars.githubusercontent.com/u/5627762?v=3","gravatar_id":"","url":"https://api.github.com/users/dflanderka","html_url":"https://github.com/dflanderka","followers_url":"https://api.github.com/users/dflanderka/followers","following_url":"https://api.github.com/users/dflanderka/following{/other_user}","gists_url":"https://api.github.com/users/dflanderka/gists{/gist_id}","starred_url":"https://api.github.com/users/dflanderka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dflanderka/subscriptions","organizations_url":"https://api.github.com/users/dflanderka/orgs","repos_url":"https://api.github.com/users/dflanderka/repos","events_url":"https://api.github.com/users/dflanderka/events{/privacy}","received_events_url":"https://api.github.com/users/dflanderka/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-02T12:12:39Z","updated_at":"2015-12-03T10:54:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6069dcbe00abec710091f70dab69ae51ce9c70a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/flow123d/flow123d/pulls/475/commits","review_comments_url":"https://api.github.com/repos/flow123d/flow123d/pulls/475/comments","review_comment_url":"https://api.github.com/repos/flow123d/flow123d/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flow123d/flow123d/issues/475/comments","statuses_url":"https://api.github.com/repos/flow123d/flow123d/statuses/308fe58792aa0468b815c76664fc0756d7af1f4f","head":{"label":"flow123d:DF_array_transposition","ref":"DF_array_transposition","sha":"308fe58792aa0468b815c76664fc0756d7af1f4f","user":{"login":"flow123d","id":5418109,"avatar_url":"https://avatars.githubusercontent.com/u/5418109?v=3","gravatar_id":"","url":"https://api.github.com/users/flow123d","html_url":"https://github.com/flow123d","followers_url":"https://api.github.com/users/flow123d/followers","following_url":"https://api.github.com/users/flow123d/following{/other_user}","gists_url":"https://api.github.com/users/flow123d/gists{/gist_id}","starred_url":"https://api.github.com/users/flow123d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flow123d/subscriptions","organizations_url":"https://api.github.com/users/flow123d/orgs","repos_url":"https://api.github.com/users/flow123d/repos","events_url":"https://api.github.com/users/flow123d/events{/privacy}","received_events_url":"https://api.github.com/users/flow123d/received_events","type":"Organization","site_admin":false},"repo":{"id":13628170,"name":"flow123d","full_name":"flow123d/flow123d","owner":{"login":"flow123d","id":5418109,"avatar_url":"https://avatars.githubusercontent.com/u/5418109?v=3","gravatar_id":"","url":"https://api.github.com/users/flow123d","html_url":"https://github.com/flow123d","followers_url":"https://api.github.com/users/flow123d/followers","following_url":"https://api.github.com/users/flow123d/following{/other_user}","gists_url":"https://api.github.com/users/flow123d/gists{/gist_id}","starred_url":"https://api.github.com/users/flow123d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flow123d/subscriptions","organizations_url":"https://api.github.com/users/flow123d/orgs","repos_url":"https://api.github.com/users/flow123d/repos","events_url":"https://api.github.com/users/flow123d/events{/privacy}","received_events_url":"https://api.github.com/users/flow123d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flow123d/flow123d","description":"Main repository of the Flow123d project.","fork":false,"url":"https://api.github.com/repos/flow123d/flow123d","forks_url":"https://api.github.com/repos/flow123d/flow123d/forks","keys_url":"https://api.github.com/repos/flow123d/flow123d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flow123d/flow123d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flow123d/flow123d/teams","hooks_url":"https://api.github.com/repos/flow123d/flow123d/hooks","issue_events_url":"https://api.github.com/repos/flow123d/flow123d/issues/events{/number}","events_url":"https://api.github.com/repos/flow123d/flow123d/events","assignees_url":"https://api.github.com/repos/flow123d/flow123d/assignees{/user}","branches_url":"https://api.github.com/repos/flow123d/flow123d/branches{/branch}","tags_url":"https://api.github.com/repos/flow123d/flow123d/tags","blobs_url":"https://api.github.com/repos/flow123d/flow123d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flow123d/flow123d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flow123d/flow123d/git/refs{/sha}","trees_url":"https://api.github.com/repos/flow123d/flow123d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flow123d/flow123d/statuses/{sha}","languages_url":"https://api.github.com/repos/flow123d/flow123d/languages","stargazers_url":"https://api.github.com/repos/flow123d/flow123d/stargazers","contributors_url":"https://api.github.com/repos/flow123d/flow123d/contributors","subscribers_url":"https://api.github.com/repos/flow123d/flow123d/subscribers","subscription_url":"https://api.github.com/repos/flow123d/flow123d/subscription","commits_url":"https://api.github.com/repos/flow123d/flow123d/commits{/sha}","git_commits_url":"https://api.github.com/repos/flow123d/flow123d/git/commits{/sha}","comments_url":"https://api.github.com/repos/flow123d/flow123d/comments{/number}","issue_comment_url":"https://api.github.com/repos/flow123d/flow123d/issues/comments{/number}","contents_url":"https://api.github.com/repos/flow123d/flow123d/contents/{+path}","compare_url":"https://api.github.com/repos/flow123d/flow123d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flow123d/flow123d/merges","archive_url":"https://api.github.com/repos/flow123d/flow123d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flow123d/flow123d/downloads","issues_url":"https://api.github.com/repos/flow123d/flow123d/issues{/number}","pulls_url":"https://api.github.com/repos/flow123d/flow123d/pulls{/number}","milestones_url":"https://api.github.com/repos/flow123d/flow123d/milestones{/number}","notifications_url":"https://api.github.com/repos/flow123d/flow123d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flow123d/flow123d/labels{/name}","releases_url":"https://api.github.com/repos/flow123d/flow123d/releases{/id}","created_at":"2013-10-16T18:56:28Z","updated_at":"2015-10-24T07:01:27Z","pushed_at":"2015-12-03T10:51:24Z","git_url":"git://github.com/flow123d/flow123d.git","ssh_url":"git@github.com:flow123d/flow123d.git","clone_url":"https://github.com/flow123d/flow123d.git","svn_url":"https://github.com/flow123d/flow123d","homepage":"<img> http://dev.nti.tul.cz:8080/job/Flow123d/badge/icon </img>","size":97495,"stargazers_count":4,"watchers_count":4,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":124,"forks":3,"open_issues":124,"watchers":4,"default_branch":"master"}},"base":{"label":"flow123d:master","ref":"master","sha":"174f84596e00314fca7550a2ee6fb0d98f50364f","user":{"login":"flow123d","id":5418109,"avatar_url":"https://avatars.githubusercontent.com/u/5418109?v=3","gravatar_id":"","url":"https://api.github.com/users/flow123d","html_url":"https://github.com/flow123d","followers_url":"https://api.github.com/users/flow123d/followers","following_url":"https://api.github.com/users/flow123d/following{/other_user}","gists_url":"https://api.github.com/users/flow123d/gists{/gist_id}","starred_url":"https://api.github.com/users/flow123d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flow123d/subscriptions","organizations_url":"https://api.github.com/users/flow123d/orgs","repos_url":"https://api.github.com/users/flow123d/repos","events_url":"https://api.github.com/users/flow123d/events{/privacy}","received_events_url":"https://api.github.com/users/flow123d/received_events","type":"Organization","site_admin":false},"repo":{"id":13628170,"name":"flow123d","full_name":"flow123d/flow123d","owner":{"login":"flow123d","id":5418109,"avatar_url":"https://avatars.githubusercontent.com/u/5418109?v=3","gravatar_id":"","url":"https://api.github.com/users/flow123d","html_url":"https://github.com/flow123d","followers_url":"https://api.github.com/users/flow123d/followers","following_url":"https://api.github.com/users/flow123d/following{/other_user}","gists_url":"https://api.github.com/users/flow123d/gists{/gist_id}","starred_url":"https://api.github.com/users/flow123d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flow123d/subscriptions","organizations_url":"https://api.github.com/users/flow123d/orgs","repos_url":"https://api.github.com/users/flow123d/repos","events_url":"https://api.github.com/users/flow123d/events{/privacy}","received_events_url":"https://api.github.com/users/flow123d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flow123d/flow123d","description":"Main repository of the Flow123d project.","fork":false,"url":"https://api.github.com/repos/flow123d/flow123d","forks_url":"https://api.github.com/repos/flow123d/flow123d/forks","keys_url":"https://api.github.com/repos/flow123d/flow123d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flow123d/flow123d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flow123d/flow123d/teams","hooks_url":"https://api.github.com/repos/flow123d/flow123d/hooks","issue_events_url":"https://api.github.com/repos/flow123d/flow123d/issues/events{/number}","events_url":"https://api.github.com/repos/flow123d/flow123d/events","assignees_url":"https://api.github.com/repos/flow123d/flow123d/assignees{/user}","branches_url":"https://api.github.com/repos/flow123d/flow123d/branches{/branch}","tags_url":"https://api.github.com/repos/flow123d/flow123d/tags","blobs_url":"https://api.github.com/repos/flow123d/flow123d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flow123d/flow123d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flow123d/flow123d/git/refs{/sha}","trees_url":"https://api.github.com/repos/flow123d/flow123d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flow123d/flow123d/statuses/{sha}","languages_url":"https://api.github.com/repos/flow123d/flow123d/languages","stargazers_url":"https://api.github.com/repos/flow123d/flow123d/stargazers","contributors_url":"https://api.github.com/repos/flow123d/flow123d/contributors","subscribers_url":"https://api.github.com/repos/flow123d/flow123d/subscribers","subscription_url":"https://api.github.com/repos/flow123d/flow123d/subscription","commits_url":"https://api.github.com/repos/flow123d/flow123d/commits{/sha}","git_commits_url":"https://api.github.com/repos/flow123d/flow123d/git/commits{/sha}","comments_url":"https://api.github.com/repos/flow123d/flow123d/comments{/number}","issue_comment_url":"https://api.github.com/repos/flow123d/flow123d/issues/comments{/number}","contents_url":"https://api.github.com/repos/flow123d/flow123d/contents/{+path}","compare_url":"https://api.github.com/repos/flow123d/flow123d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flow123d/flow123d/merges","archive_url":"https://api.github.com/repos/flow123d/flow123d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flow123d/flow123d/downloads","issues_url":"https://api.github.com/repos/flow123d/flow123d/issues{/number}","pulls_url":"https://api.github.com/repos/flow123d/flow123d/pulls{/number}","milestones_url":"https://api.github.com/repos/flow123d/flow123d/milestones{/number}","notifications_url":"https://api.github.com/repos/flow123d/flow123d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flow123d/flow123d/labels{/name}","releases_url":"https://api.github.com/repos/flow123d/flow123d/releases{/id}","created_at":"2013-10-16T18:56:28Z","updated_at":"2015-10-24T07:01:27Z","pushed_at":"2015-12-03T10:51:24Z","git_url":"git://github.com/flow123d/flow123d.git","ssh_url":"git@github.com:flow123d/flow123d.git","clone_url":"https://github.com/flow123d/flow123d.git","svn_url":"https://github.com/flow123d/flow123d","homepage":"<img> http://dev.nti.tul.cz:8080/job/Flow123d/badge/icon </img>","size":97495,"stargazers_count":4,"watchers_count":4,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":124,"forks":3,"open_issues":124,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flow123d/flow123d/pulls/475"},"html":{"href":"https://github.com/flow123d/flow123d/pull/475"},"issue":{"href":"https://api.github.com/repos/flow123d/flow123d/issues/475"},"comments":{"href":"https://api.github.com/repos/flow123d/flow123d/issues/475/comments"},"review_comments":{"href":"https://api.github.com/repos/flow123d/flow123d/pulls/475/comments"},"review_comment":{"href":"https://api.github.com/repos/flow123d/flow123d/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flow123d/flow123d/pulls/475/commits"},"statuses":{"href":"https://api.github.com/repos/flow123d/flow123d/statuses/308fe58792aa0468b815c76664fc0756d7af1f4f"}}}}