(cls, bcfxml: Union[bcf.bcfxml.BcfXml, None], filepath: str)
| 47 | |
| 48 | @classmethod |
| 49 | def set(cls, bcfxml: Union[bcf.bcfxml.BcfXml, None], filepath: str) -> None: |
| 50 | cls.bcfxml = bcfxml |
| 51 | props = tool.Bcf.get_bcf_props() |
| 52 | props.bcf_file = filepath |
| 53 | |
| 54 | # Set bcf_version prop on load. |
| 55 | if filepath or bcfxml: |
| 56 | bcfxml = cls.get_bcfxml() |
| 57 | assert bcfxml |
| 58 | bcf_v2 = (bcfxml.version.version_id or "").startswith("2") |
| 59 | props.bcf_version = "2" if bcf_v2 else "3" |
| 60 | |
| 61 | @classmethod |
| 62 | def set_by_filepath(cls, filepath: str) -> None: |
no test coverage detected