Skip to content

Commit f48db30

Browse files
committed
Blackify
1 parent 91eb9d8 commit f48db30

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

qcportal/qcportal/dataset_models.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1190,20 +1190,20 @@ def compile_values(
11901190
11911191
Parameters
11921192
-----------
1193-
value_call
1194-
Function to call on each record to extract the desired value. Must return a scalar value or
1193+
value_call
1194+
Function to call on each record to extract the desired value. Must return a scalar value or
11951195
a sequence of values if 'unpack' is set to True.
11961196
11971197
value_names
1198-
Column name(s) for the extracted value(s). If a string is provided and multiple values are
1199-
returned by 'value_call', columns are named by appending an index to this string. If a list
1198+
Column name(s) for the extracted value(s). If a string is provided and multiple values are
1199+
returned by 'value_call', columns are named by appending an index to this string. If a list
12001200
of strings is provided, it must match the length of the sequence returned by 'value_call'.
12011201
Default is "value".
12021202
1203-
entry_names
1203+
entry_names
12041204
Entry names to filter records. If not provided, considers all entries.
12051205
1206-
specification_names
1206+
specification_names
12071207
Specification names to filter records. If not provided, considers all specifications.
12081208
12091209
unpack
@@ -1226,11 +1226,11 @@ def compile_values(
12261226
Notes
12271227
------
12281228
1. The DataFrame is structured such that the rows are entries and columns are specifications.
1229-
2. If 'unpack' is True, the function assumes 'value_call' returns a sequence of values that need
1229+
2. If 'unpack' is True, the function assumes 'value_call' returns a sequence of values that need
12301230
to be distributed across columns in the resulting DataFrame. 'value_call' should always return the
12311231
same number of values for each record if unpack is True.
12321232
"""
1233-
1233+
12341234
def _data_generator(unpack=False):
12351235
for entry_name, spec_name, record in self.iterate_records(
12361236
entry_names=entry_names,
@@ -1279,13 +1279,13 @@ def get_properties_df(self, properties_list: Sequence[str]) -> pd.DataFrame:
12791279
12801280
This function uses the provided list of property names to extract corresponding
12811281
values from each record's properties. It returns a DataFrame where rows represent
1282-
each record. Each column corresponds has a top level index as a specification,
1283-
and a second level index as the appropriate value name. Columns with all
1282+
each record. Each column corresponds has a top level index as a specification,
1283+
and a second level index as the appropriate value name. Columns with all
12841284
NaN values are dropped.
12851285
12861286
Parameters:
12871287
-----------
1288-
properties_list
1288+
properties_list
12891289
List of property names to retrieve from the records.
12901290
12911291
Returns:

0 commit comments

Comments
 (0)