geoseeq 0.7.3.dev2__py3-none-any.whl → 0.7.3.dev4__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/project.py +11 -10
- geoseeq/sample.py +6 -6
- {geoseeq-0.7.3.dev2.dist-info → geoseeq-0.7.3.dev4.dist-info}/METADATA +1 -1
- {geoseeq-0.7.3.dev2.dist-info → geoseeq-0.7.3.dev4.dist-info}/RECORD +7 -7
- {geoseeq-0.7.3.dev2.dist-info → geoseeq-0.7.3.dev4.dist-info}/WHEEL +0 -0
- {geoseeq-0.7.3.dev2.dist-info → geoseeq-0.7.3.dev4.dist-info}/entry_points.txt +0 -0
- {geoseeq-0.7.3.dev2.dist-info → geoseeq-0.7.3.dev4.dist-info}/licenses/LICENSE +0 -0
geoseeq/project.py
CHANGED
@@ -387,10 +387,11 @@ class Project(RemoteObject):
|
|
387
387
|
|
388
388
|
post_data = {"name": title, "is_default": default}
|
389
389
|
self.knex.post(f"sample_groups/{self.uuid}/dashboard-list", json=post_data)
|
390
|
+
return Dashboard(
|
391
|
+
knex=self.knex, project=self, title=title, default=default, tiles=[]
|
392
|
+
)
|
390
393
|
|
391
|
-
|
392
|
-
|
393
|
-
def get_default_dashbaord(self):
|
394
|
+
def get_default_dashboard(self):
|
394
395
|
"""Get the default dashboard for this project."""
|
395
396
|
from geoseeq.dashboard.dashboard import Dashboard, DashboardTile
|
396
397
|
|
@@ -419,15 +420,15 @@ class Project(RemoteObject):
|
|
419
420
|
pass
|
420
421
|
return None
|
421
422
|
|
422
|
-
def
|
423
|
+
def get_or_create_default_dashboard(self):
|
423
424
|
"""Get the default dashboard for this project or create it if does not exist."""
|
424
|
-
default_dashboard = self.
|
425
|
+
default_dashboard = self.get_default_dashboard()
|
425
426
|
if default_dashboard:
|
426
427
|
return default_dashboard
|
427
428
|
else:
|
428
429
|
return self.create_dashboard(default=True)
|
429
430
|
|
430
|
-
def
|
431
|
+
def get_dashboard_by_title(self, title):
|
431
432
|
"""Get dashboard for this project by the title of the dashboard."""
|
432
433
|
from geoseeq.dashboard.dashboard import Dashboard, DashboardTile
|
433
434
|
|
@@ -454,11 +455,11 @@ class Project(RemoteObject):
|
|
454
455
|
pass
|
455
456
|
return None
|
456
457
|
|
457
|
-
def
|
458
|
+
def get_or_create_dashboard_by_title(self, title: str):
|
458
459
|
"""Get dashboard by title for this project or create it if does not exist."""
|
459
|
-
|
460
|
-
if
|
461
|
-
return
|
460
|
+
dashboard = self.get_dashboard_by_title(title)
|
461
|
+
if dashboard:
|
462
|
+
return dashboard
|
462
463
|
else:
|
463
464
|
return self.create_dashboard(title=title, default=False)
|
464
465
|
|
geoseeq/sample.py
CHANGED
@@ -249,7 +249,7 @@ class Sample(RemoteObject):
|
|
249
249
|
dashboard._already_fetched = True
|
250
250
|
return dashboard
|
251
251
|
|
252
|
-
def
|
252
|
+
def get_default_dashboard(self):
|
253
253
|
"""Get the default dashboard for this sample."""
|
254
254
|
from geoseeq.dashboard.dashboard import SampleDashboard
|
255
255
|
|
@@ -267,15 +267,15 @@ class Sample(RemoteObject):
|
|
267
267
|
pass
|
268
268
|
return None
|
269
269
|
|
270
|
-
def
|
270
|
+
def get_or_create_default_dashboard(self):
|
271
271
|
"""Get the default dashboard for this sample or create it if does not exist."""
|
272
|
-
default_dashboard = self.
|
272
|
+
default_dashboard = self.get_default_dashboard()
|
273
273
|
if default_dashboard:
|
274
274
|
return default_dashboard
|
275
275
|
else:
|
276
276
|
return self.create_dashboard(default=True)
|
277
277
|
|
278
|
-
def
|
278
|
+
def get_dashboard_by_title(self, title):
|
279
279
|
"""Get dashboard by title for this sample."""
|
280
280
|
from geoseeq.dashboard.dashboard import SampleDashboard
|
281
281
|
|
@@ -293,9 +293,9 @@ class Sample(RemoteObject):
|
|
293
293
|
pass
|
294
294
|
return None
|
295
295
|
|
296
|
-
def
|
296
|
+
def get_or_create_dashboard_by_title(self, title):
|
297
297
|
"""Get dashboard by title for this sample or create it if does not exist."""
|
298
|
-
default_dashboard = self.
|
298
|
+
default_dashboard = self.get_dashboard_by_title(title)
|
299
299
|
if default_dashboard:
|
300
300
|
return default_dashboard
|
301
301
|
else:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: geoseeq
|
3
|
-
Version: 0.7.3.
|
3
|
+
Version: 0.7.3.dev4
|
4
4
|
Summary: GeoSeeq command line tools and python API
|
5
5
|
Project-URL: Homepage, https://github.com/biotia/geoseeq_api_client
|
6
6
|
Project-URL: Issues, https://github.com/biotia/geoseeq_api_client/issues
|
@@ -7,9 +7,9 @@ geoseeq/file_system_cache.py,sha256=HzVZWtwLD2fjWWSo_UfWmGeBltm9He4lP_OqzKwNGWg,
|
|
7
7
|
geoseeq/knex.py,sha256=zcjafsmUn9SC3LlRnvvaXpr-pHYZ0IXk7LpzuUoE3MI,8312
|
8
8
|
geoseeq/organization.py,sha256=bJkYL8_D-k6IYAaii2ZbxjwYnXy6lvu6iLXscxKlA3w,2542
|
9
9
|
geoseeq/pipeline.py,sha256=89mhWaecsKnm6tyRkdkaVp4dmZh62_v42Ze0oXf8OTY,9873
|
10
|
-
geoseeq/project.py,sha256=
|
10
|
+
geoseeq/project.py,sha256=jryxHMx5PdQNaMJWjlzgQmxJt_s2M-HAHARBCPd1Vzc,17075
|
11
11
|
geoseeq/remote_object.py,sha256=GYN6PKU7Zz3htIdpFjfZiFejzGqqJHbJyKlefM1Eixk,7151
|
12
|
-
geoseeq/sample.py,sha256=
|
12
|
+
geoseeq/sample.py,sha256=LeLJytRYERY5dkMIOWqANTPTun9wqei393qeNlPBw1U,10895
|
13
13
|
geoseeq/search.py,sha256=gawad6Cx5FxJBPlYkXWb-UKAO-UC0_yhvyU9Ca1kaNI,3388
|
14
14
|
geoseeq/smart_table.py,sha256=rihMsFUIn-vn4w6ukVZTHI9bjDSEr8xHExBfX8mwCHM,6169
|
15
15
|
geoseeq/smart_tree.py,sha256=bSjDlwmOuNXutYJhytA1RovwRCHV6ZxXXJPiIGFhPaA,1825
|
@@ -92,8 +92,8 @@ geoseeq/vc/vc_cache.py,sha256=P4LXTbq2zOIv1OhP7Iw5MmypR2vXuy29Pq5K6gRvi-M,730
|
|
92
92
|
geoseeq/vc/vc_dir.py,sha256=A9CLTh2wWCRzZjiLyqXD1vhtsWZGD3OjaMT5KqlfAXI,457
|
93
93
|
geoseeq/vc/vc_sample.py,sha256=qZeioWydXvfu4rGMs20nICfNcp46y_XkND-bHdV6P5M,3850
|
94
94
|
geoseeq/vc/vc_stub.py,sha256=IQr8dI0zsWKVAeY_5ybDD6n49_3othcgfHS3P0O9tuY,3110
|
95
|
-
geoseeq-0.7.3.
|
96
|
-
geoseeq-0.7.3.
|
97
|
-
geoseeq-0.7.3.
|
98
|
-
geoseeq-0.7.3.
|
99
|
-
geoseeq-0.7.3.
|
95
|
+
geoseeq-0.7.3.dev4.dist-info/METADATA,sha256=4bfJLyjpSn16lfEIK8OvC5xbfLI4nKHhqGieH7PPsVE,5415
|
96
|
+
geoseeq-0.7.3.dev4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
97
|
+
geoseeq-0.7.3.dev4.dist-info/entry_points.txt,sha256=yF-6KDM8zXib4Al0qn49TX-qM7PUkWUIcYtsgt36rjM,45
|
98
|
+
geoseeq-0.7.3.dev4.dist-info/licenses/LICENSE,sha256=IuhIl1XCxXLPLJT_coN1CNqQU4Khlq7x4IdW7ioOJD8,1067
|
99
|
+
geoseeq-0.7.3.dev4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|