コード例 #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
コード例 #2
0
ファイル: example.py プロジェクト: csm-adapt/karon
def mechanical(**contents):
    return Sample(**contents)
コード例 #3
0
ファイル: example.py プロジェクト: csm-adapt/karon
def porosity(**contents):
    return Sample(**contents)
コード例 #4
0
ファイル: example.py プロジェクト: csm-adapt/karon
def build(**contents):
    return Sample(**contents)
コード例 #5
0
ファイル: example.py プロジェクト: csm-adapt/karon
def generic(**contents):
    return Sample(**contents)
コード例 #6
0
def build(**attributes):
    return Sample(**attributes)
コード例 #7
0
def xct(**attributes):
    return Sample(**attributes)
コード例 #8
0
def vickers(**attributes):
    return Sample(**attributes)