dcicutils 8.18.0__py3-none-any.whl → 8.18.1.1b1__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.
dcicutils/portal_utils.py CHANGED
@@ -471,6 +471,19 @@ class Portal:
471
471
  super_type_map_flattened[super_type_name] = list_breadth_first(super_type_map, super_type_name)
472
472
  return super_type_map_flattened
473
473
 
474
+ @lru_cache(maxsize=100)
475
+ def get_schema_super_type_names(self, schema_name: str, include_schema_name: bool = False) -> List[str]:
476
+ if isinstance(schema_name, str) and (schema_name := self.schema_name(schema_name)):
477
+ if isinstance(super_type_map := self.get_schemas_super_type_map(), dict):
478
+ super_types = set()
479
+ for super_type_name in super_type_map:
480
+ if schema_name in super_type_map[super_type_name]:
481
+ super_types.add(super_type_name)
482
+ if (include_schema_name is True) and super_types and self.get_schema(schema_name):
483
+ super_types.add(schema_name)
484
+ return list(super_types)
485
+ return []
486
+
474
487
  @lru_cache(maxsize=100)
475
488
  def get_schema_subtype_names(self, type_name: str) -> List[str]:
476
489
  if not (schemas_super_type_map := self.get_schemas_super_type_map()):
@@ -76,7 +76,7 @@ from dcicutils.misc_utils import to_boolean, to_float, to_integer
76
76
  # the same (portal) type; see comments below near the ExcelSheetName class definition.
77
77
 
78
78
  CUSTOM_COLUMN_MAPPINGS_BASE_URL = "https://raw.githubusercontent.com/smaht-dac/submitr/refs/heads"
79
- CUSTOM_COLUMN_MAPPINGS_BRANCH = "dmichaels-custom-column-mappings-20250115"
79
+ CUSTOM_COLUMN_MAPPINGS_BRANCH = "master"
80
80
  CUSTOM_COLUMN_MAPPINGS_PATH = "submitr/config/custom_column_mappings.json"
81
81
  CUSTOM_COLUMN_MAPPINGS_URL = f"{CUSTOM_COLUMN_MAPPINGS_BASE_URL}/{CUSTOM_COLUMN_MAPPINGS_BRANCH}/{CUSTOM_COLUMN_MAPPINGS_PATH}" # noqa
82
82
  CUSTOM_COLUMN_MAPPINGS_LOCAL = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dcicutils
3
- Version: 8.18.0
3
+ Version: 8.18.1.1b1
4
4
  Summary: Utility package for interacting with the 4DN Data Portal and other 4DN resources
5
5
  Home-page: https://github.com/4dn-dcic/utils
6
6
  License: MIT
@@ -49,7 +49,7 @@ dcicutils/misc_utils.py,sha256=U6dABhaswQA_QPJgkx535WZuZ_ECfc3KvamOEdIMUtc,11607
49
49
  dcicutils/obfuscation_utils.py,sha256=fo2jOmDRC6xWpYX49u80bVNisqRRoPskFNX3ymFAmjw,5963
50
50
  dcicutils/opensearch_utils.py,sha256=V2exmFYW8Xl2_pGFixF4I2Cc549Opwe4PhFi5twC0M8,1017
51
51
  dcicutils/portal_object_utils.py,sha256=Az3n1aL-PQkN5gOFE6ZqC2XkYsqiwKlq7-tZggs1QN4,11062
52
- dcicutils/portal_utils.py,sha256=ttqcs6wNyfe8T_OcGl_AvGXoVD5KKbhwDop7PC8rOaE,47533
52
+ dcicutils/portal_utils.py,sha256=n_Evc8bYBBkWh89ysFB0mmHJ9lUsH-Rio_dWUqrLkkQ,48275
53
53
  dcicutils/progress_bar.py,sha256=R3bWLMYM3Xq9PY7U0JadcFT1m7QmCbrbDp9qs9_Kf_c,19472
54
54
  dcicutils/project_utils.py,sha256=qPdCaFmWUVBJw4rw342iUytwdQC0P-XKpK4mhyIulMM,31250
55
55
  dcicutils/qa_checkers.py,sha256=j0kzo_T5VduKTxgsMTp7xjneyNokumZzI_iz55Y0Jjs,20505
@@ -68,7 +68,7 @@ dcicutils/snapshot_utils.py,sha256=YDeI3vD-MhAtHwKDzfEm2q-n3l-da2yRpRR3xp0Ah1M,2
68
68
  dcicutils/ssl_certificate_utils.py,sha256=F0ifz_wnRRN9dfrfsz7aCp4UDLgHEY8LaK7PjnNvrAQ,9707
69
69
  dcicutils/structured_data.py,sha256=9Uleh8AhRWW6qj4fDCUnpRBsLgxWHZVh8nJdMDSHmD0,67510
70
70
  dcicutils/submitr/config/custom_column_mappings.json,sha256=GS6umTpNZszTao8zTbGiNbR8qFnL4kudMt3nBZXaom0,3881
71
- dcicutils/submitr/custom_excel.py,sha256=VqAjEAXEjY8nnS-fxCjLPAEhFWHyL5AkKDNGn-Czts0,16583
71
+ dcicutils/submitr/custom_excel.py,sha256=foT-fvGQti4RbTYIj6JSE4lh0gLhQ8thcidoUH-hv4w,16548
72
72
  dcicutils/submitr/progress_constants.py,sha256=5bxyX77ql8qEJearfHEvsvXl7D0GuUODW0T65mbRmnE,2895
73
73
  dcicutils/submitr/ref_lookup_strategy.py,sha256=VJN-Oo0LLna6Vo2cu47eC-eU-yUC9NFlQP29xajejVU,4741
74
74
  dcicutils/task_utils.py,sha256=MF8ujmTD6-O2AC2gRGPHyGdUrVKgtr8epT5XU8WtNjk,8082
@@ -77,8 +77,8 @@ dcicutils/trace_utils.py,sha256=g8kwV4ebEy5kXW6oOrEAUsurBcCROvwtZqz9fczsGRE,1769
77
77
  dcicutils/validation_utils.py,sha256=cMZIU2cY98FYtzK52z5WUYck7urH6JcqOuz9jkXpqzg,14797
78
78
  dcicutils/variant_utils.py,sha256=2H9azNx3xAj-MySg-uZ2SFqbWs4kZvf61JnK6b-h4Qw,4343
79
79
  dcicutils/zip_utils.py,sha256=_Y9EmL3D2dUZhxucxHvrtmmlbZmK4FpSsHEb7rGSJLU,3265
80
- dcicutils-8.18.0.dist-info/LICENSE.txt,sha256=IrWHOFtMb2inTgr2ZqwQriRC8H3uMQfQVO6lniaaoE0,1102
81
- dcicutils-8.18.0.dist-info/METADATA,sha256=hbPeg5MHZe6rNL1ndPdW78tXt7nEpJMIDy7iEGaMgu0,3489
82
- dcicutils-8.18.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
83
- dcicutils-8.18.0.dist-info/entry_points.txt,sha256=W6kEWdUJk9tQ4myAgpehPdebcwvCAZ7UgB-wyPgDUMg,335
84
- dcicutils-8.18.0.dist-info/RECORD,,
80
+ dcicutils-8.18.1.1b1.dist-info/LICENSE.txt,sha256=IrWHOFtMb2inTgr2ZqwQriRC8H3uMQfQVO6lniaaoE0,1102
81
+ dcicutils-8.18.1.1b1.dist-info/METADATA,sha256=QTmT7uAXru-PL2DWvZiwiaYiMkF009Q65xXIAOyd6pQ,3493
82
+ dcicutils-8.18.1.1b1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
83
+ dcicutils-8.18.1.1b1.dist-info/entry_points.txt,sha256=W6kEWdUJk9tQ4myAgpehPdebcwvCAZ7UgB-wyPgDUMg,335
84
+ dcicutils-8.18.1.1b1.dist-info/RECORD,,