Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Aug 30, 2023
1 parent 174193e commit dcd578d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion pymzml/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ def _determine_file_encoding(self, path):

@staticmethod
def _obo_version_validator(version):

"""
The obo version should fit file names in the obo folder.
However, some software generate mzML with built in obo version string like:
Expand Down
13 changes: 3 additions & 10 deletions pymzml/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,7 @@ def _get_encoding_parameters(self, array_type):
d_type = b_data_array.find(
float_type_string.format(
ns=self.ns,
Acc=self.obo_translator["32-bit integer"][
"id"
],
Acc=self.obo_translator["32-bit integer"]["id"],
)
).get("name")
except:
Expand All @@ -216,9 +214,7 @@ def _get_encoding_parameters(self, array_type):
d_type = b_data_array.find(
float_type_string.format(
ns=self.ns,
Acc=self.obo_translator["64-bit integer"][
"id"
],
Acc=self.obo_translator["64-bit integer"]["id"],
)
).get("name")
except:
Expand Down Expand Up @@ -285,7 +281,6 @@ def _decode_to_numpy(self, data, d_array_length, data_type, comp):
or "MS-Numpress linear prediction compression" in comp
or "MS-Numpress short logged float compression" in comp
):

out_data = self._decodeNumpress_to_array(out_data, comp)
if data_type == "32-bit float":
# one character code may be sufficient too (f)
Expand Down Expand Up @@ -1213,9 +1208,7 @@ def _centroid_peaks(self):
try:
profile_ot = self.obo_translator.name.get("profile spectrum", None)
if profile_ot is None:
profile_ot = self.obo_translator.name.get(
"profile mass spectrum", None
)
profile_ot = self.obo_translator.name.get("profile mass spectrum", None)
acc = profile_ot["id"]
is_profile = (
True
Expand Down

0 comments on commit dcd578d

Please sign in to comment.