mtbls-mhd-integration 0.0.8__py3-none-any.whl → 0.0.10__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.
- mtbls2mhd/__init__.py +1 -1
- mtbls2mhd/v0_1/legacy/builder.py +6 -2
- mtbls2mhd/v0_1/legacy/db_metadata_collector.py +2 -9
- {mtbls_mhd_integration-0.0.8.dist-info → mtbls_mhd_integration-0.0.10.dist-info}/METADATA +2 -2
- {mtbls_mhd_integration-0.0.8.dist-info → mtbls_mhd_integration-0.0.10.dist-info}/RECORD +9 -9
- {mtbls_mhd_integration-0.0.8.dist-info → mtbls_mhd_integration-0.0.10.dist-info}/WHEEL +0 -0
- {mtbls_mhd_integration-0.0.8.dist-info → mtbls_mhd_integration-0.0.10.dist-info}/entry_points.txt +0 -0
- {mtbls_mhd_integration-0.0.8.dist-info → mtbls_mhd_integration-0.0.10.dist-info}/licenses/LICENSE +0 -0
- {mtbls_mhd_integration-0.0.8.dist-info → mtbls_mhd_integration-0.0.10.dist-info}/top_level.txt +0 -0
mtbls2mhd/__init__.py
CHANGED
mtbls2mhd/v0_1/legacy/builder.py
CHANGED
|
@@ -1970,9 +1970,13 @@ class MhdLegacyDatasetBuilder:
|
|
|
1970
1970
|
study.public_release_date,
|
|
1971
1971
|
data.study_db_metadata.release_date,
|
|
1972
1972
|
)
|
|
1973
|
+
# actual or estimated
|
|
1974
|
+
public_release_date_str = (
|
|
1975
|
+
db_metadata.first_public_date or db_metadata.release_date or None
|
|
1976
|
+
)
|
|
1973
1977
|
public_release_date = (
|
|
1974
|
-
datetime.datetime.strptime(
|
|
1975
|
-
if
|
|
1978
|
+
datetime.datetime.strptime(public_release_date_str, "%Y-%m-%d")
|
|
1979
|
+
if public_release_date_str
|
|
1976
1980
|
else None
|
|
1977
1981
|
)
|
|
1978
1982
|
submission_date = (
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import asyncio
|
|
2
1
|
from datetime import datetime, timezone
|
|
3
2
|
from functools import lru_cache
|
|
4
3
|
from logging import getLogger
|
|
@@ -267,7 +266,7 @@ class DbMetadataCollector(AbstractDbMetadataCollector):
|
|
|
267
266
|
study_db_metadata.first_private_date = self._get_date_string(
|
|
268
267
|
study["first_private_date"]
|
|
269
268
|
)
|
|
270
|
-
study_db_metadata.submission_date =
|
|
269
|
+
study_db_metadata.submission_date = self.get_date(study["submissiondate"])
|
|
271
270
|
|
|
272
271
|
study_db_metadata.curation_request = CurationRequest.get_from_int(
|
|
273
272
|
study["curation_request"]
|
|
@@ -275,7 +274,7 @@ class DbMetadataCollector(AbstractDbMetadataCollector):
|
|
|
275
274
|
study_db_metadata.first_public_date = self._get_date_string(
|
|
276
275
|
study["first_public_date"]
|
|
277
276
|
)
|
|
278
|
-
study_db_metadata.release_date =
|
|
277
|
+
study_db_metadata.release_date = self.get_date(study["releasedate"])
|
|
279
278
|
study_db_metadata.update_date = self._get_date_time_string(study["updatedate"])
|
|
280
279
|
study_db_metadata.status_date = self._get_date_time_string(study["status_date"])
|
|
281
280
|
study_db_metadata.submitters = self._create_submitters(submitters)
|
|
@@ -349,9 +348,3 @@ class DbMetadataCollector(AbstractDbMetadataCollector):
|
|
|
349
348
|
return datetime.fromtimestamp(
|
|
350
349
|
date_value.timestamp(), tz=timezone.utc
|
|
351
350
|
).isoformat()
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
if __name__ == "__main__":
|
|
355
|
-
db = DbMetadataCollector()
|
|
356
|
-
result = asyncio.run(db.get_all_public_study_ids_from_db())
|
|
357
|
-
logger.info(result)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mtbls-mhd-integration
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
4
4
|
Summary: MetaboLights - MetabolomicsHub Integration
|
|
5
5
|
Author-email: MetaboLights Team <metabolights-help@ebi.ac.uk>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
7
|
-
Requires-Python:
|
|
7
|
+
Requires-Python: <4.0,>=3.12
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
Requires-Dist: asyncpg>=0.30.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
mtbls2mhd/__init__.py,sha256=
|
|
1
|
+
mtbls2mhd/__init__.py,sha256=70_LUTTl8i1CruKiWdtW214TIydnLJWYFAoDrNNVhb0,158
|
|
2
2
|
mtbls2mhd/config.py,sha256=BjOqAyfDhp9byoFjJz70xh4HRR8pu1yrm_5jweqygSI,2310
|
|
3
3
|
mtbls2mhd/convertor_factory.py,sha256=4loatqIRIvIhcaeIS0cSonJNYJu47o56ZllX6593ypk,1133
|
|
4
4
|
mtbls2mhd/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -8,16 +8,16 @@ mtbls2mhd/commands/create_mhd_file.py,sha256=0sDr-Cm0JhhEB5V1g66uoag3rlcaAnGP8Md
|
|
|
8
8
|
mtbls2mhd/commands/validate.py,sha256=iwIKegviRxdH0r8scRXbDISlwQUzAq5uVoCHinU7x6Q,473
|
|
9
9
|
mtbls2mhd/v0_1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
mtbls2mhd/v0_1/legacy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
-
mtbls2mhd/v0_1/legacy/builder.py,sha256=
|
|
11
|
+
mtbls2mhd/v0_1/legacy/builder.py,sha256=IN3z8I3VsDkmLv_XMeDaLVkq88d9yl6hRWilNtNKo-U,85914
|
|
12
12
|
mtbls2mhd/v0_1/legacy/convertor.py,sha256=M4-3NB56C0DN8H5vmM0yC0J_qW87ZImjjL1vzDEBc5s,2208
|
|
13
|
-
mtbls2mhd/v0_1/legacy/db_metadata_collector.py,sha256=
|
|
13
|
+
mtbls2mhd/v0_1/legacy/db_metadata_collector.py,sha256=CgCA_7_GQPbbvrHBOW2SYtJhGU2BTR4s_IGHpWN0aLw,13032
|
|
14
14
|
mtbls2mhd/v0_1/legacy/folder_metadata_collector.py,sha256=1lELGwTsr12nBGwTog_Z8qi9dLt4awma56vBYoI678k,7439
|
|
15
15
|
mtbls2mhd/v0_1/legacy/mtbls_study_schema.py,sha256=gUTbRmI8GfHI5leLiw8dxsmWnV3NnWw5RPX_LQWRFRQ,3162
|
|
16
16
|
mtbls2mhd/v0_1/ms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
mtbls2mhd/v0_1/ms/convertor.py,sha256=kLIUpxOrH6hcs2Y9Bq1D0Mdvypg40pLyEJpHtGj6H_g,89
|
|
18
|
-
mtbls_mhd_integration-0.0.
|
|
19
|
-
mtbls_mhd_integration-0.0.
|
|
20
|
-
mtbls_mhd_integration-0.0.
|
|
21
|
-
mtbls_mhd_integration-0.0.
|
|
22
|
-
mtbls_mhd_integration-0.0.
|
|
23
|
-
mtbls_mhd_integration-0.0.
|
|
18
|
+
mtbls_mhd_integration-0.0.10.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
19
|
+
mtbls_mhd_integration-0.0.10.dist-info/METADATA,sha256=5bH9jtiEApCDeyjg20tG9deRHGJV7DZ73kDksmLPs6w,688
|
|
20
|
+
mtbls_mhd_integration-0.0.10.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
21
|
+
mtbls_mhd_integration-0.0.10.dist-info/entry_points.txt,sha256=WQjM4flaYMyvHyv9zGKjCVk1i1_FGdNlhTmFVGgLgxs,61
|
|
22
|
+
mtbls_mhd_integration-0.0.10.dist-info/top_level.txt,sha256=b7pI95n6HIQMFXDD0yL1NwldiDc-XdeWql4Iw-uYygQ,10
|
|
23
|
+
mtbls_mhd_integration-0.0.10.dist-info/RECORD,,
|
|
File without changes
|
{mtbls_mhd_integration-0.0.8.dist-info → mtbls_mhd_integration-0.0.10.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mtbls_mhd_integration-0.0.8.dist-info → mtbls_mhd_integration-0.0.10.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{mtbls_mhd_integration-0.0.8.dist-info → mtbls_mhd_integration-0.0.10.dist-info}/top_level.txt
RENAMED
|
File without changes
|