Skip to content

Commit

Permalink
Call own implementation of CFF to CodeMeta conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
sdruskat committed Dec 11, 2023
1 parent ef32dc4 commit 4967301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hermes/commands/harvest/cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from ruamel.yaml import YAML
import jsonschema
import click
from cffconvert import Citation

from hermes.commands.harvest.conversion import cff
from hermes.model.context import HermesHarvestContext, ContextPath
from hermes.model.errors import HermesValidationError
from hermes.commands.harvest import util
Expand Down Expand Up @@ -75,7 +75,7 @@ def _load_cff_from_file(cff_data: str) -> t.Any:


def _convert_cff_to_codemeta(cff_data: str) -> t.Any:
codemeta_str = Citation(cff_data).as_codemeta()
codemeta_str = cff.to_codemeta(cff_data)
return json.loads(codemeta_str)


Expand Down

0 comments on commit 4967301

Please sign in to comment.