Ejemplo n.º 1
0
def generic(**contents):
    def is_null(entry):
        try:
            if np.isnan(entry):
                return True
        except TypeError:
            pass
        finally:
            return not bool(entry)

    sample = Sample(**contents)
    if is_null(sample.contents["Parent Sample Name"]):
        sample.contents["Parent Sample Name"] = str()
    return sample
Ejemplo n.º 2
0
def mechanical(**contents):
    return Sample(**contents)
Ejemplo n.º 3
0
def porosity(**contents):
    return Sample(**contents)
Ejemplo n.º 4
0
def build(**contents):
    return Sample(**contents)
Ejemplo n.º 5
0
def generic(**contents):
    return Sample(**contents)
Ejemplo n.º 6
0
def build(**attributes):
    return Sample(**attributes)
Ejemplo n.º 7
0
def xct(**attributes):
    return Sample(**attributes)
Ejemplo n.º 8
0
def vickers(**attributes):
    return Sample(**attributes)