Skip to content

Commit

Permalink
style: address linting and typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Karanjot786 committed Oct 9, 2024
1 parent 61c710e commit 5f2b494
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 28 deletions.
4 changes: 0 additions & 4 deletions crategen/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ def cli(input, output, conversion_type):
output: Path to the output JSON file.
conversion_type: Type of conversion to perform. Choices are "tes-to-wrroc" and "wes-to-wrroc".
Raises:
FileNotFoundError: If the input file does not exist.
json.JSONDecodeError: If the input file is not valid JSON.
Example:
$ crategen --input data.json --output result.json --conversion-type tes-to-wrroc
"""
Expand Down
6 changes: 0 additions & 6 deletions crategen/converter_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ def convert_tes_to_wrroc(self, tes_data):
Returns:
The converted data in WRROC format.
Raises:
ValueError: If the conversion fails due to invalid data.
"""
return self.tes_converter.convert_to_wrroc(tes_data)

Expand All @@ -39,8 +36,5 @@ def convert_wes_to_wrroc(self, wes_data):
Returns:
The converted data in WRROC format.
Raises:
ValueError: If the conversion fails due to invalid data.
"""
return self.wes_converter.convert_to_wrroc(wes_data)
6 changes: 0 additions & 6 deletions crategen/converters/abstract_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ def convert_to_wrroc(self, data):
Returns:
The data converted to WRROC format.
Raises:
NotImplementedError: If the method is not implemented by the subclass.
"""

@abstractmethod
Expand All @@ -29,7 +26,4 @@ def convert_from_wrroc(self, wrroc_data):
Returns:
The data converted back to the original format.
Raises:
NotImplementedError: If the method is not implemented by the subclass.
"""
6 changes: 0 additions & 6 deletions crategen/converters/tes_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ def convert_to_wrroc(self, tes_data):
Returns:
dict: The converted WRROC data.
Raises:
ValidationError: If TES data is invalid.
"""
id = tes_data.get("id", "")
name = tes_data.get("name", "")
Expand Down Expand Up @@ -48,9 +45,6 @@ def convert_from_wrroc(self, wrroc_data):
Returns:
dict: The converted TES data.
Raises:
ValidationError: If WRROC data is invalid.
"""
id = wrroc_data.get("@id", "")
name = wrroc_data.get("name", "")
Expand Down
6 changes: 0 additions & 6 deletions crategen/converters/wes_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ def convert_to_wrroc(self, wes_data):
Returns:
dict: The converted WRROC data.
Raises:
ValidationError: If WES data is invalid.
"""
run_id = wes_data.get("run_id", "")
name = wes_data.get("run_log", {}).get("name", "")
Expand All @@ -44,9 +41,6 @@ def convert_from_wrroc(self, wrroc_data):
Returns:
dict: The converted WES data.
Raises:
ValidationError: If WRROC data is invalid.
"""
run_id = wrroc_data.get("@id", "")
name = wrroc_data.get("name", "")
Expand Down

0 comments on commit 5f2b494

Please sign in to comment.