diff --git a/brukerapi/cli.py b/brukerapi/cli.py index 8423d49..751de8c 100644 --- a/brukerapi/cli.py +++ b/brukerapi/cli.py @@ -62,7 +62,7 @@ def main(): dest="path_out", type=str, required=False, - help="Folder to save splitted data sets", + help="Folder to save split data sets", ) parser_split.add_argument( "-s", @@ -81,7 +81,7 @@ def main(): parser_split.set_defaults(func=split) # filter sub-command - parser_filter = subparsers.add_parser('filter', help='get files based on querry') + parser_filter = subparsers.add_parser('filter', help='get files based on query') parser_filter.add_argument( "-i", "--input", diff --git a/brukerapi/jcampdx.py b/brukerapi/jcampdx.py index 37eae07..ed57cef 100644 --- a/brukerapi/jcampdx.py +++ b/brukerapi/jcampdx.py @@ -872,7 +872,7 @@ def divide_jcampdx_line(cls, line): @classmethod def split_key_value_pair(cls, line): - # ASSUMPTION the first occurence of = in jcampdx line divides key and value pair + # ASSUMPTION the first occurrence of = in jcampdx line divides key and value pair # example: match = re.search(GRAMMAR['EQUAL_SIGN'], line) key = line[0:match.start()] diff --git a/brukerapi/splitters.py b/brukerapi/splitters.py index a48911c..7b12026 100644 --- a/brukerapi/splitters.py +++ b/brukerapi/splitters.py @@ -136,7 +136,7 @@ def split(self, dataset, select=None, write=False, path_out=None, **kwargs): # number of samples in self.fg dimension fg_size = dataset.shape[fg_abs_index] - # If no index is specified, all elements of given dimension will be splited + # If no index is specified, all elements of given dimension will be split if select is None: select = list(range(0, fg_size)) @@ -266,9 +266,9 @@ def split(self, dataset, write=False, path_out=None): This functionality might be used for instance when converting data to a different data format. :param dataset: 2dseq dataset with multiple slice packages - :param write: if True, splitted data sets will we writen to drive + :param write: if True, split data sets will be written to drive :param path_out: a path to store data sets (optional) - :return: list of splitted data sets + :return: list of split data sets """ try: @@ -276,7 +276,7 @@ def split(self, dataset, write=False, path_out=None): except KeyError: print('Parameter VisuCoreSlicePacksSlices not found') - # list of splitted data sets + # list of split data sets datasets = [] # range of frames of given slice package @@ -303,7 +303,7 @@ def split(self, dataset, write=False, path_out=None): # construct a new Dataset, without loading data, the data will be supplied later dataset_ = Dataset(dataset.path.parents[1] / name, load=False) - # SPLIT parameteres + # SPLIT parameters dataset_.parameters = self._split_parameters(dataset, frame_range, fg_rel_index, fg_abs_index, sp_index, frame_count) # construct properties from the new set of parameters @@ -391,4 +391,4 @@ def _split_VisuCoreSlicePacksSliceDist(self, visu_pars_, sp_index): VisuCoreSlicePacksSliceDist = visu_pars_['VisuCoreSlicePacksSliceDist'] value = int(VisuCoreSlicePacksSliceDist.value[sp_index]) VisuCoreSlicePacksSliceDist.value = value - VisuCoreSlicePacksSliceDist.size = 1 \ No newline at end of file + VisuCoreSlicePacksSliceDist.size = 1