solvebio-python icon indicating copy to clipboard operation
solvebio-python copied to clipboard

Unicode strings affect table output

Open jsh2134 opened this issue 8 years ago • 1 comments

Seems that path names and other strings that contain unicode affect the table output spacing

Out[7]:
<list at 0x102dd3be0> JSON:
|                 ID | Object Type   | Path                                   | Filename         |   Description |
|--------------------+---------------+----------------------------------------+------------------+---------------|
| 487801590695174933 | folder        | /1000G                                 | 1000G            |               |
| 488353213479992177 | folder        | /1000G                                 | 1000G            |               |
| 497236159926586949 | folder        | /1000G                                 | 1000G            |               |
| 488296414556065737 | folder        | /1000G                                 | 1000G            |               |
| 487801590932389915 | folder        | /1000G/1.1.0-2015-01-08                | 1.1.0-2015-01-08 |               |
| 488353213708712449 | folder        | /1000G/1.1.0-2015-01-08                | 1.1.0-2015-01-08 |               |
| 497236160026527707 | folder        | /1000G/1.1.0-2015-01-08                | 1.1.0-2015-01-08 |               |
| 488296414792977635 | folder        | /1000G/1.1.0-2015-01-08                | 1.1.0-2015-01-08 |               |
| 487801591185416554 | dataset       | /1000G/1.1.0-2015-01-08/1000G          | 1000G            |               |
| 488353213969592764 | dataset       | /1000G/1.1.0-2015-01-08/1000G-GRCh37   | 1000G-GRCh37     |               |
| 497236160235558370 | dataset       | /1000G/1.1.0-2015-01-08/1000G-GRCh37   | 1000G-GRCh37     |               |
| 488296415032926603 | folder        | /1000G/1.1.0-2015-01-08/GRCh37         | GRCh37           |               |
| 488296415298430936 | dataset       | /1000G/1.1.0-2015-01-08/GRCh37/1000G   | 1000G            |               |
|              12646 | folder        | /10_records (1)/evidence/24761aaféà  | 24761aaféà     |               |
|                 36 | file          | /10_records (1)/evidence/250mb.json.gz | 250mb.json.gz    |               |
|                 37 | file          | /10_records (1)/evidence/250mb.json.gz | 250mb.json.gz    |               |
|                 52 | file          | /10_records (1)/evidence/250mb.json.gz | 250mb.json.gz    |               |
|                168 | file          | /10_records (1)/evidence/250mb.json.gz | 250mb.json.gz    |               |
|                390 | file          | /10_records (1)/evidence/330kb.json.gz | 330kb.json.gz    |               |
|                392 | file          | /10_records (1)/evidence/330kb.json.gz | 330kb.json.gz    |               |

jsh2134 avatar Jul 13 '17 14:07 jsh2134

seems that dict/json has the same effect

In [40]: v
Out[40]:
|               Fields | Data                                                      |
|----------------------+-----------------------------------------------------------|
|       account_domain | XXXXXXXX                                                  |
|           account_id | XX                                                        |
|           class_name | Vault                                                     |
|           created_at | 2016-03-17T16:49:33Z                                      |
|          description |                                                           |
|         has_children | True                                                      |
|  has_folder_children | True                                                      |
|                   id | XXXX                                                      |
|           is_deleted | False                                                     |
|            is_public | False                                                     |
|          last_synced |                                                           |
|                 name | user-XXXX                                                 |
|          permissions | {  "admin": false,   "read": false,   "write": false} |
|             provider | SolveBio                                                  |
| require_unique_paths | False                                                     |
|           updated_at | 2017-05-04T22:55:24.160Z                                  |
|                  url | /v2/vaults/XXXX                                           |
|              user_id | XXXX                                                      |
|     vault_properties | []                                                        |
|           vault_type | user                                                      |

jsh2134 avatar Jul 13 '17 15:07 jsh2134