Skip to content

Commit 6282fb7

Browse files
committed
chore: update models and api types
1 parent 231881e commit 6282fb7

File tree

3 files changed

+12
-25
lines changed

3 files changed

+12
-25
lines changed

cryosparc/api.pyi

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class InstanceNamespace(APINamespace):
150150
self, service: LoggingService, /, *, days: int = 30, date: Optional[str] = ..., max_lines: Optional[int] = ...
151151
) -> str:
152152
"""
153-
Gets cryosparc service logs, filterable by date, name, function, and level
153+
Gets cryosparc service logs, filterable by date. Only lines with a date are counted for max_lines.
154154
"""
155155
...
156156
def get_runtime_diagnostics(self) -> RuntimeDiagnostics:
@@ -1315,19 +1315,6 @@ class SessionsNamespace(APINamespace):
13151315
Updates a session's params. Updates each exposure inside the session with the new stage to start processing at (if there is one).
13161316
"""
13171317
...
1318-
def update_session_picker(
1319-
self,
1320-
project_uid: str,
1321-
session_uid: str,
1322-
/,
1323-
*,
1324-
activate_picker_type: Literal["blob", "template", "deep"],
1325-
use_thresholds: bool = True,
1326-
) -> Session:
1327-
"""
1328-
Updates a session's picker.
1329-
"""
1330-
...
13311318
def update_attribute_threshold(
13321319
self,
13331320
project_uid: str,
@@ -1581,7 +1568,7 @@ class SessionsNamespace(APINamespace):
15811568
Updates parameters for a streaming Homogenous Refinement job for a session
15821569
"""
15831570
...
1584-
def create_and_enqueue_dump_particles(
1571+
def create_and_enqueue_export_particles(
15851572
self,
15861573
project_uid: str,
15871574
session_uid: str,
@@ -1593,14 +1580,14 @@ class SessionsNamespace(APINamespace):
15931580
test_only: bool = False,
15941581
) -> Job:
15951582
"""
1596-
Creates and enqueues a dump particles job for a session
1583+
Creates and enqueues a Live Particle Export job for a session
15971584
"""
15981585
...
1599-
def create_and_enqueue_dump_exposures(
1586+
def create_and_enqueue_export_exposures(
16001587
self, project_uid: str, session_uid: str, /, *, export_ignored: bool = False
16011588
) -> Job:
16021589
"""
1603-
Creates and enqueues a dump exposures job for a session
1590+
Creates and enqueues a Live Exposure Export job for a session
16041591
"""
16051592
...
16061593
def get_data_management_stats(self, project_uid: str, /) -> Dict[str, DataManagementStats]:

cryosparc/models/notification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ class Notification(BaseModel):
2121
icon: str = "flag"
2222
hide: bool = False
2323
job_status: Optional[JobStatus] = None
24-
ttl_seconds: int = 7
24+
ttl_seconds: Optional[int] = 7

cryosparc/models/session.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,29 +271,29 @@ class Session(BaseModel):
271271
name="template_pick_score_median", title="Median Template Pick Score", min=None, max=None, round=3
272272
),
273273
SessionAttribute(
274-
name="total_extracted_particles",
274+
name="total_extracted_particles", title="Total Particles Extracted", min=None, max=None, round=0
275+
),
276+
SessionAttribute(
277+
name="total_extracted_particles_manual",
275278
title="Total Manual Picker Particles Extracted",
276279
min=None,
277280
max=None,
278281
round=0,
279282
),
280283
SessionAttribute(
281-
name="total_extracted_particles_manual",
284+
name="total_extracted_particles_blob",
282285
title="Total Blob Picker Particles Extracted",
283286
min=None,
284287
max=None,
285288
round=0,
286289
),
287290
SessionAttribute(
288-
name="total_extracted_particles_blob",
291+
name="total_extracted_particles_template",
289292
title="Total Template Picker Particles Extracted",
290293
min=None,
291294
max=None,
292295
round=0,
293296
),
294-
SessionAttribute(
295-
name="total_extracted_particles_template", title="Total Particles Extracted", min=None, max=None, round=0
296-
),
297297
]
298298
picking_thresholds: PickingThresholds = PickingThresholds()
299299
compute_resources: LiveComputeResources = LiveComputeResources()

0 commit comments

Comments
 (0)