geoseeq 0.2.16__py3-none-any.whl → 0.2.17__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
geoseeq/cli/main.py CHANGED
@@ -30,7 +30,7 @@ main.add_command(cli_view)
30
30
  @main.command()
31
31
  def version():
32
32
  """Print the version of the Geoseeq API being used."""
33
- click.echo('0.2.16') # remember to update setup
33
+ click.echo('0.2.17') # remember to update setup
34
34
 
35
35
 
36
36
  @main.group('advanced')
@@ -51,7 +51,7 @@ class SelectablePlot:
51
51
  self._add_keys(*keys)
52
52
  subdata = self.data
53
53
  for key in keys:
54
- if keys == keys[-1]:
54
+ if key == keys[-1]:
55
55
  subdata[key] = plot
56
56
  subdata = subdata[key]
57
57
  return self
@@ -60,15 +60,16 @@ class SelectablePlot:
60
60
  """Ensure we have plots for each key combo."""
61
61
  assert self.selectors
62
62
 
63
- def check_subdata(i, subdata):
63
+ def check_subdata(i, subdata, key_chain):
64
64
  if i == len(self.selectors):
65
- assert subdata # subdata exists and is not empty
65
+ assert subdata, f"subdata does not exist or is empty. Key Chain: {key_chain}"
66
+ return
66
67
  for key in self.selectors[i]:
67
68
  if key not in subdata:
68
- assert False
69
- check_subdata(i + 1, subdata[key])
69
+ assert False, f'key: "{key}" is missing in `data`'
70
+ check_subdata(i + 1, subdata[key], key_chain + [key])
70
71
 
71
- check_subdata(0, self.data)
72
+ check_subdata(0, self.data, [])
72
73
 
73
74
  def to_dict(self):
74
75
  """Return the selectable plot as a dictionary."""
@@ -77,4 +78,4 @@ class SelectablePlot:
77
78
  'version': self.VERSION,
78
79
  'selectors': [s.to_dict() for s in self.selectors],
79
80
  'data': self.data,
80
- }
81
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geoseeq
3
- Version: 0.2.16
3
+ Version: 0.2.17
4
4
  Summary: # Geoseeq API Client
5
5
  Author: David C. Danko
6
6
  Author-email: dcdanko@biotia.io
@@ -18,7 +18,7 @@ geoseeq/cli/constants.py,sha256=Do5AUf9lMO9_P8KpFJ3XwwFBAWsxSjZ6sx9_QEGyC_c,176
18
18
  geoseeq/cli/copy.py,sha256=ocJ-T6vZBTPELUSBA65KndzAugrBWMq-3ux0dbffacE,1997
19
19
  geoseeq/cli/download.py,sha256=N4eEUiQIiqpFMXOnhkMBCRCKlYyKi0QtRJk5HBEAHkA,10807
20
20
  geoseeq/cli/fastq_utils.py,sha256=-bmeQLaiMBm57zWOF0R5OlWTU0_3sh1JBC1RYw2BOFM,3083
21
- geoseeq/cli/main.py,sha256=wwkuoQL49P8r7ooRLrT73sFaF6MibGABeOdNAWkCws4,1027
21
+ geoseeq/cli/main.py,sha256=pY8P-GsO5Rc5wAWsAg5qKzYN76rXjPOIoXSt6tfuPG0,1027
22
22
  geoseeq/cli/manage.py,sha256=xy_iMfqSSMaSTQNYiTw2xEWpH4mpTAq4Cf_6QemEMnI,5409
23
23
  geoseeq/cli/progress_bar.py,sha256=p1Xl01nkYxSBZCB30ue2verIIi22W93m3ZAMAxipD0g,738
24
24
  geoseeq/cli/user.py,sha256=fARv_5vx-QYT765Hsjgwr6J5ddA_viCPQdv9iUoVX6w,925
@@ -48,7 +48,7 @@ geoseeq/id_constructors/utils.py,sha256=CKlZHGMiqi1b6r1KtgD3czSAomH99Gdfx5ziqaah
48
48
  geoseeq/plotting/__init__.py,sha256=RkGoXxgu7jEfK0B7NmdalPS2AbU7I7dZwDbi4rn9CKM,154
49
49
  geoseeq/plotting/constants.py,sha256=CGUlm8WAFG3YRKdicc9Rcy5hFxUdUm2RgK0iXZWLuX8,285
50
50
  geoseeq/plotting/highcharts.py,sha256=AGzdW4VSUsL_rfEI-RiVbbtaTLFMARvzLzVUDrKTlnU,4096
51
- geoseeq/plotting/selectable.py,sha256=bSOll5biQ-9mqjpntGuZe7FVEh-QxfqDezj1UDjqQA4,2433
51
+ geoseeq/plotting/selectable.py,sha256=hFbVlSgklR8tkLt9H1Fi-EwjXhV72YDdkkZMoReeBbI,2554
52
52
  geoseeq/result/__init__.py,sha256=IFHIyRV8ZzuKIfwfze1SXgcKwNMcSgMAknLHMkwjXIU,356
53
53
  geoseeq/result/bioinfo.py,sha256=QQtbyogrdro9avJSN0713sxLVnVeA24mFw3hWtKDKyw,1782
54
54
  geoseeq/result/file_download.py,sha256=R087ypOAu2pMZ9vXvkO9babPBNtRXTF3ZhpPldcT_jM,4593
@@ -68,9 +68,9 @@ geoseeq/vc/vc_stub.py,sha256=IQr8dI0zsWKVAeY_5ybDD6n49_3othcgfHS3P0O9tuY,3110
68
68
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
69
69
  tests/test_api_client.py,sha256=DDhnNJBJgz-LAmpRzVvvfjdcm_t4meQhZLUuS7XP7fE,14452
70
70
  tests/test_work_orders.py,sha256=CB6QbGGMNeEePZiOVioiSQP2dQsyMnsy4L31AQMRs3A,498
71
- geoseeq-0.2.16.dist-info/LICENSE,sha256=IuhIl1XCxXLPLJT_coN1CNqQU4Khlq7x4IdW7ioOJD8,1067
72
- geoseeq-0.2.16.dist-info/METADATA,sha256=nTQX1KGdWZfCenXfo-Uqyvkap6hoc1D7yStqa_1IeOI,455
73
- geoseeq-0.2.16.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
74
- geoseeq-0.2.16.dist-info/entry_points.txt,sha256=yF-6KDM8zXib4Al0qn49TX-qM7PUkWUIcYtsgt36rjM,45
75
- geoseeq-0.2.16.dist-info/top_level.txt,sha256=zZk7mmeaqAYqFJG8nq2DTgSQPbflRjJwkDIhNURPDEU,14
76
- geoseeq-0.2.16.dist-info/RECORD,,
71
+ geoseeq-0.2.17.dist-info/LICENSE,sha256=IuhIl1XCxXLPLJT_coN1CNqQU4Khlq7x4IdW7ioOJD8,1067
72
+ geoseeq-0.2.17.dist-info/METADATA,sha256=MhD15WS-G8qtqJtYghJ3SiU-bJN_tIMn99z8dl5pQzA,455
73
+ geoseeq-0.2.17.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
74
+ geoseeq-0.2.17.dist-info/entry_points.txt,sha256=yF-6KDM8zXib4Al0qn49TX-qM7PUkWUIcYtsgt36rjM,45
75
+ geoseeq-0.2.17.dist-info/top_level.txt,sha256=zZk7mmeaqAYqFJG8nq2DTgSQPbflRjJwkDIhNURPDEU,14
76
+ geoseeq-0.2.17.dist-info/RECORD,,