Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/v/a/VAMDC-VALD-HEAD/nodes/oacagliari/node/queryfunc.py   VAMDC-VALD(Download)
            state.energymethod = state.task.pk
            if not (state.energymethod in [m.id for m in methods]):
                new_method = models.Method(state.energymethod, state.task.returnmethoddescriptionandbib(), result_sources)
                result_sources += new_method.Sources
                methods.append(new_method)
                nmMethod = vibration_analyses_armonic[0].task.pk
                if not (nmMethod in [m.id for m in methods]):
                    new_method = models.Method(nmMethod, vibration_analyses_armonic[0].task.returnmethoddescriptionandbib(), result_sources)
                    result_sources += new_method.Sources
                    methods.append(new_method)