Skip to content

Commit

Permalink
Use literal syntax instead of function calls to create data structure (
Browse files Browse the repository at this point in the history
…#409)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] authored Dec 12, 2022
1 parent ff251aa commit 5bf6780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mofdscribe/datasets/structuredataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def __init__(
check_all_file_exists(self._structures)

self._year_column = year_column
self._label_columns = list(label_columns) if label_columns is not None else tuple()
self._feature_columns = list(feature_columns) if feature_columns is not None else tuple()
self._label_columns = list(label_columns) if label_columns is not None else ()
self._feature_columns = list(feature_columns) if feature_columns is not None else ()
self._decorated_graph_hash_column = decorated_graph_hash_column
self._undecorated_graph_hash_column = undecorated_graph_hash_column
self._decorated_scaffold_hash_column = decorated_scaffold_hash_column
Expand Down Expand Up @@ -219,7 +219,7 @@ def __init__(
compress_dataset(self._df)
self._structure_name_column = structure_name_column
self._year_column = year_column
self._label_columns = list(label_columns) if label_columns is not None else tuple()
self._label_columns = list(label_columns) if label_columns is not None else ()
self._decorated_graph_hash_column = decorated_graph_hash_column
self._undecorated_graph_hash_column = undecorated_graph_hash_column
self._decorated_scaffold_hash_column = decorated_scaffold_hash_column
Expand Down

0 comments on commit 5bf6780

Please sign in to comment.