File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,15 @@ merge_dicts(
339
339
```
340
340
341
341
342
+ ##### ` concat_lists `
343
+
344
+ ``` python
345
+ def concat_lists (* lists : list[T]) -> list[T]
346
+ ```
347
+
348
+ Concatenates multiple lists into one list .
349
+
350
+
342
351
# # `tum_esm_utils.decorators`
343
352
344
353
Decorators that can be used wrap functions.
@@ -1455,6 +1464,15 @@ Checks the memory usage of the system.
1455
1464
The memory usage in percent.
1456
1465
1457
1466
1467
+ # #### `get_physical_memory_usage`
1468
+
1469
+ ```python
1470
+ def get_physical_memory_usage() -> float
1471
+ ```
1472
+
1473
+ Returns the memory usage (physical memory) of the current process in MB .
1474
+
1475
+
1458
1476
# #### `get_disk_space`
1459
1477
1460
1478
```python
@@ -1956,6 +1974,22 @@ def reset() -> None
1956
1974
Reset the waiting period to the first bucket
1957
1975
1958
1976
1977
+ # #### `timed_section`
1978
+
1979
+ ```python
1980
+ @ contextlib.contextmanager
1981
+ def timed_section(label: str ) -> Generator[None , None , None ]
1982
+ ```
1983
+
1984
+ Time a section of code and print the duration.
1985
+ Usage example:
1986
+
1987
+ ```python
1988
+ with timed_section(" my_section" ):
1989
+ do_something()
1990
+ ```
1991
+
1992
+
1959
1993
# # `tum_esm_utils.validators`
1960
1994
1961
1995
Implements validator utils for use with pydantic models.
You can’t perform that action at this time.
0 commit comments