Skip to content

Commit 22574d5

Browse files
committed
Change units and add new identifier
1 parent 300264a commit 22574d5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

caltechdata_api/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
] # PREDEFINED FOR SPEED.
1414

1515

16-
def humanbytes(num: Union[int, float], metric: bool = False, precision: int = 1) -> str:
16+
def humanbytes(num: Union[int, float], metric: bool = True, precision: int = 1) -> str:
1717
"""
1818
Human-readable formatting of bytes, using binary (powers of 1024)
1919
or metric (powers of 1000) representation.

caltechdata_api/vocabularies/identifier_types.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,8 @@
103103
datacite: tiltid
104104
title:
105105
en: TILT_SERIES_ID
106+
- id: dsa-110-id
107+
props:
108+
datacite: dsa-110-id
109+
title:
110+
en: DSA_110_ID

0 commit comments

Comments
 (0)