uibcdf / MolSysMT

Open source library to work with molecular systems
https://www.uibcdf.org/MolSysMT/
Other
12 stars 3 forks source link

Are former auxiliary functions in private module `lists_and_tuples` necessary? #62

Closed dprada closed 2 years ago

dprada commented 2 years ago

The following functions in a former version of _private/lists_and_tuples (see the file are probably called by code waiting to be re-implemented. This needs to be checked to confirm their removal.

def list_to_csv_string(obj):

    return ",".join([str(ii) for ii in obj])

def list_to_ssv_string(obj):

    return " ".join([str(ii) for ii in obj])

def are_equal_sets(objects1, objects2):

    if not is_list_or_tuple(objects1):
        objects1=[objects1]
    if not is_list_or_tuple(objects2):
        objects2=[objects2]

    output = False
    if set(objects1)==set(objects2):
        output = True

    return output
dprada commented 2 years ago

They are not necessary, at least with the MolSysMT 0.6.1.