Mercurial > repos > bimib > cobraxy
comparison COBRAxy/utils/general_utils.py @ 338:111dbc8e0415 draft
Uploaded
| author | luca_milaz |
|---|---|
| date | Thu, 04 Sep 2025 12:26:56 +0000 |
| parents | 350c3f3cb61d |
| children | 1fd4e4e93c85 |
comparison
equal
deleted
inserted
replaced
| 337:350c3f3cb61d | 338:111dbc8e0415 |
|---|---|
| 69 | 69 |
| 70 Returns: | 70 Returns: |
| 71 str : the string representation of the file extension. | 71 str : the string representation of the file extension. |
| 72 """ | 72 """ |
| 73 | 73 |
| 74 if(self.value[-1] in ["json", "xml"]): #return the original string extension for compressed files | 74 if(self.value[0] in ["json", "xml"]): #return the original string extension for compressed files |
| 75 return self.original_extension | 75 return self.original_extension |
| 76 else: | 76 else: |
| 77 return self.value[-1] # for all other formats and pickle | 77 return self.value[-1] # for all other formats and pickle |
| 78 | 78 |
| 79 class FilePath(): | 79 class FilePath(): |
