sbml.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:edd 作者: JBEI 项目源码 文件源码
def create_time_select_form(self, payload, **kwargs):
        """ Constructs a form to select the timepoint of data to export to SBML and the output
            filename. Depends on measurement forms already existing.

            :param payload: the QueryDict from POST attribute of a request
            :param kwargs: any additional kwargs to pass to ALL forms; see Django Forms
                documentation.
            :return: a SbmlExportSelectionForm """
        # error if no range or if max < min
        if self._min is None or self._max is None or self._max < self._min:
            return None
        points = self._points
        t_range = Range(min=self._min, max=self._max)
        if points is not None:
            points = sorted(points)
        time_form = SbmlExportSelectionForm(
            t_range=t_range, points=points, line=self._selection.lines[0], data=payload, **kwargs
        )
        time_form.sbml_warnings.extend(self._export_errors)
        return time_form
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号