用于创建全参数化生命周期评估(lca)前景模型的交互式工具

lcopt-dev的Python项目详细描述


#lcopt dev
用于创建完全参数化生命周期评估(lca)前景模型(lcopt)的交互式工具的开发分支


[构建状态](https://travis-ci.org/pjamesjoyce/lcopt.svg?分支=开发](https://travis-ci.org/pjamesjoyce/lcopt)
windows[![Windows生成状态](https://ci.appveyor.com/api/projects/status/vwtfm3ml7hy070ku/branch/development?svg=true)(https://ci.appveyor.com/project/pjamesjoyce/lcopt/branch/development)
测试覆盖率[![覆盖状态](https://coveralls.io/repos/github/pjamesjoyce/lcopt/badge.svg?分支=开发](https://coveralls.io/github/pjamesjoyce/lcopt?分支=开发)
引用[![出版物](http://joss.theoj.org/papers/c0b544bee185c9ac75e96d24b8573547/status.svg)(http://joss.theoj.org/papers/c0b54bee185c9ac75e96d24b8573547);

lcopt是一个python模块,用于使用由[james j]开发的基于烧瓶的交互式gui创建完全参数化的lca前景模型。oyce](https://pjamesjoyce.github.io/)


它直接与brightway2集成,并可以将模型导出到simapro


您可以将模型和结果导出并共享为.lcoptview文件,并使用[lcoptview]与更广泛的受众共享它们(http://lcoptview.rtfd.io)

文档(包括完整的安装说明)在[此处](http://lcopt.readthedocs.io)


每次将更新推送到github(https://github.com/pjamesjoyce/lcopt/tree/development)上的"development"分支时,都会更新"lcopt dev"conda包。

将互相覆盖。

```

或要在现有环境中获得最新版本的"lcopt dev":

````
激活lcopt dev注意,在UNIX上使用"source activate lcopt dev"
conda up date-c conda forge-c cmutel-c haasad-c pjamesjoyce lcopt devhtway

`lcopt dev`通过使用由[adrian haas]开发的优秀的[`eidl`](https://github.com/haasad/ecoinventdownloader)(https://github.com/haasad)使这一切变得简单。


在您的网络浏览器中。输入您的用户名和密码,然后选择您首选的ecoinvent版本。单击"保存"。

![lcopt settings](./docs/assets/lcopt_dev_settings.jpg)


第一次创建模型时,lcopt将自动下载并在brightway中设置ecoinvent数据库-耐心等待一段时间。但这只需要发生一次。

如果您没有ecoinvent登录名,请将此项留空,lcopt将自动下载并使用forwast代替。

ST模型。一个[入门](https://lcopt.readthedocs.io/en/latest/2_getting戥u started.html)指南,包括一个[视频运行](https://lcopt.readthedocs.io/en/latest/2戥u getting戥u started.html戥video)以及[更多详细说明](https://lcopt.readthedocs.io/en/latest/3_use.html)可在[联机文档](https://lcopt.readthedocs.io/)中找到。

在python中,因此也可以在python shell中使用它。打开jupyter笔记本或python shell并使用以下命令:

您需要使用模型名作为第一个参数来创建lcoptmodel类的实例:

``python
model=lcoptmodel('my first model')
````

设置。如果您希望您的模型使用不同的版本或系统模型,可以使用:



`` python
model=lcoptmodel('My first ecoinvent 3.4 apos model',ecoinvent_version="3.4",ecoinvent_system_model="apos")
```

,或者如果您希望使用forwast而不是使用:

``python
model=lcoptmodel('my first forwast model',useforwast=true)
````

在windows中,这是c:\ users\[您的名称]\appdata\local\lcopt\lcopt。

rent directory或defualt directory),在这个命令中:

``python
model=lcoptmodel(load='my first model')
````

除非你告诉lcopt,否则它不会覆盖你保存的模型。只需不保存模型,然后使用"load=`

lask服务器并启动web浏览器以访问gui。如果没有,或者您意外地关闭了gui选项卡,只需转到[http://127.0.0.1:5000/(http://127.0.0.1:5000/)。


有关如何使用gui的信息位于"更多信息…"面板中,这些面板分布在gui内的敏感位置。

有关使用gui的更多详细信息,请参阅[documenta]选项](https://lcopt.readthedocs.io/en/latest/3_use.html)或[视频](https://lcopt.readthedocs.io/en/latest/2_getting_started.html video)


\contribution

如果您有任何问题、问题、评论、功能请求等,请[在github上提出问题](https://github.com)/pjamesjoyce/lcopt/issues)

如果您想为lcopt做出贡献,我们非常欢迎您!请分叉[Github存储库](https://github.com/pjamesjoyce/lcopt/)并打开一个拉取请求。

lcopt使用[py.test](https://docs.pytest.org/en/latest/index.html>;)和travis进行自动测试,因此请将任何新功能与相应的测试一起提供。有关示例,请参见[源代码](https://github.com/pjamesjoyce/lcopt/tree/master/tests)中的"tests"文件夹。

[出版物](http://joss.theoj.org/papers/c0b544bee185c9ac75e96d24b8573547/status.svg)(http://joss.theoj.org/papers/c0b54bee185c9ac75e96d24b8573547)

来自[此处](http://www.doi2bib.or)的t软件g//doi/10.21105/joss.00339)。


或使用以下引文:



\< BR>

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java JTable无法向新创建的列添加值   java如何调整JEditorPane中编辑区域的大小?   Java通过反射确定未知数组中的数组大小   java Intellij Idea有时无法按其预期的方式构建应用程序   java Swing GUI带有IntelliJ错误“contentPane不能设置为null”从终端编译时   如何将这些通用方法调用从C#转换为Java   在null上找不到java属性或字段“index”   从Java HashMap获取整数值时是否需要调用intValue()方法?   java Android谷歌地图获取相机中的图像块   unix无法捕获JAVA中“who m”命令的输出   java,同时将邮件发送到“收件人”标题“我”中的多个收件人   在java中向链表添加未知数量的节点   无法为Heroku上的discord bot设置java端口   java使用Apache HttpClient进行选项请求   与元素类型“ApplicationName”关联的属性“Application Version”需要java Open quote   Android Studio Java中的两个变量求和