GenomicsStandardsConsortium / mixs

Minimum Information about any (X) Sequence” (MIxS) specification
https://w3id.org/mixs
Creative Commons Zero v1.0 Universal
38 stars 21 forks source link

hyphens appearing in dataclass names #418

Closed sujaypatil96 closed 4 months ago

sujaypatil96 commented 2 years ago

As documented partly in PR #403, there are dataclasses that are created in mixs/mixs.py that have a hyphen in them, which is not valid syntax for dataclass names.

To reproduce the error, run the following commands:

poetry install  # install project
python
>> import mixs.mixs as mixs  # import dataclass as module
from mixs import Host-Associated  # errors out with ValueError

We need to do a preliminary analysis and check if the problem needs to be fixed on LinkML's end or the MIxS end.

turbomam commented 2 years ago

@sujaypatil96 please provide a list of the offending dataclasses

sujaypatil96 commented 4 months ago

This is no longer an issue starting with MIxS v6.2, so closing it.