Mercurial > repos > bimib > cobraxy
comparison COBRAxy/utils/general_utils.py @ 336:b89091ae2484 draft
Uploaded
author | luca_milaz |
---|---|
date | Thu, 04 Sep 2025 12:13:44 +0000 |
parents | 2b7911a8366f |
children | 350c3f3cb61d |
comparison
equal
deleted
inserted
replaced
335:2b7911a8366f | 336:b89091ae2484 |
---|---|
34 JSON = ("json","json.gz", "json.zip", "json.bz2") # COBRA models can be stored as JSON files, sometimes compressed | 34 JSON = ("json","json.gz", "json.zip", "json.bz2") # COBRA models can be stored as JSON files, sometimes compressed |
35 | 35 |
36 TXT = ("txt",) # this is how most output data is written | 36 TXT = ("txt",) # this is how most output data is written |
37 | 37 |
38 PICKLE = ("pickle", "pk", "p") # this is how all runtime data structures are saved | 38 PICKLE = ("pickle", "pk", "p") # this is how all runtime data structures are saved |
39 | |
40 def __init__(self): | |
41 self.original_extension = "" | |
42 | 39 |
43 | 40 |
44 @classmethod | 41 @classmethod |
45 def fromExt(cls, ext :str) -> "FileFormat": | 42 def fromExt(cls, ext :str) -> "FileFormat": |
46 """ | 43 """ |