brightway-lca / brightway2-ui Goto Github PK
View Code? Open in Web Editor NEWa command line tool for brightway
License: BSD 3-Clause "New" or "Revised" License
a command line tool for brightway
License: BSD 3-Clause "New" or "Revised" License
search can look up for activities by name and location
Allow the user to search by reference product. For example:
s -rp {electricity, high voltage}
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
the ``h`` command doesn’t work
No information is displayed for loc
, scale
and uncertainty type
in exchanges.
Display the loc
, scale
and uncertainty type
of exchanges when available.
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
the a command looks first for the key in the Database(x).load, and if the key is there, it loads the activity. This implies a call to load which for large database (I’m looking at you!) can take too long.
Faster load of an activity by using get_activity
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/conda-package-deploy.yaml
actions/checkout v4
conda-incubator/setup-miniconda v3
.github/workflows/python-package-deploy-bw25.yml
actions/checkout v4
actions/setup-python v5
.github/workflows/python-package-deploy.yml
actions/checkout v4
actions/setup-python v5
bw2ui/web/templates/base.html
datatables 1.10.21
datatables 1.10.21
bw2ui/web/templates/search.html
pyproject.toml
furo ==2024.1.29
myst-parser ==2.0.0
sphinx ==7.2.6
setuptools >=68.0
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
For small databases, it makes sense to be able to explore all the activities in it.
Invoking "aa" would list (with paging) all activities in the database.
only top emissions/procs are available
use bw2analyzer
print_recursive_x functions to provide a CA of a given LCIA (after running the G
command for example).
When the package building actions to publish conda packages are called one after the other (one for bw25ui and the other for bw2ui) the second called action fails with "re-login" issues:
You are not logged in
Using Anaconda API: https://api.anaconda.org/
Warning: RNING] It appears you are already logged in from host fv-az1245-974
Warning: Logging in again will remove the previous token. (This could cause troubles with virtual machines with the same hostname)
Warning: Otherwise you can login again and specify a different hostname with "--hostname"
Error: EOF when reading a line
Would you like to continue [Y|n]:
Error: Process completed with exit code 1.
Both actions work.
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
market for waste polyethylene/polypropylene product [15/1972]
Database: stuff
ID: fe15f74bfcc
Product: waste fantastic product
Production amount: -1 kilogram
Location: RoW
Categories:
Technosphere inputs: 1
Biosphere flows: 0
Reference flow used by: 65
There are empty categories, because now they are called classifications (ISIC, Ecopsold, etc.)
when invoking ta
command after doing an lcia (with G
command) we get:
File "/home/duende/miniforge3/envs/bw2ui-dev/bin/bw2-browser", line 33, in <module>
sys.exit(load_entry_point('bw2ui', 'console_scripts', 'bw2-browser')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/duende/workspaces/brightway2-ui/bw2ui/bin/bw2_browser.py", line 1471, in main
activitybrowser.cmdloop()
File "/home/duende/miniforge3/envs/bw2ui-dev/lib/python3.11/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
^^^^^^^^^^^^^^^^^
File "/home/duende/miniforge3/envs/bw2ui-dev/lib/python3.11/cmd.py", line 217, in onecmd
return func(arg)
^^^^^^^^^
File "/home/duende/workspaces/brightway2-ui/bw2ui/bin/bw2_browser.py", line 1222, in do_ta
top_a = lca.top_activities()
^^^^^^^^^^^^^^^^^^
AttributeError: 'LCA' object has no attribute 'top_activities'
The command works providing the list of top activities and top emissions
Original report by Anonymous.
the TUI cannot show project, database or activity parameters
We have a new command "lpam" that can show parameters. with an option -g {proj} -g {db} -g {xx} to show parameters of project level, of database level or from a given group. if the lpam command is executed when an activity is selectec, we show parameters of the activity
yep, so it seems.
search by category breaks the app
snoopb-ei310-sample@(biosphere3) >> s -cat {air} Ammonia
Filtering for category air after search
Traceback (most recent call last):
File "/home/pizamonday/.local/bin/bw2-browser", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/pizamonday/.local/lib/python3.12/site-packages/bw2ui/bin/bw2_browser.py", line 1619, in main
activitybrowser.cmdloop()
File "/usr/lib64/python3.12/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/cmd.py", line 217, in onecmd
return func(arg)
^^^^^^^^^
File "/home/pizamonday/.local/lib/python3.12/site-packages/bw2ui/bin/bw2_browser.py", line 1191, in do_s
results = Database(self.database).search(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pizamonday/.local/lib/python3.12/site-packages/bw2data/backends/base.py", line 972, in search
results = s.search(string=string, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pizamonday/.local/lib/python3.12/site-packages/bw2data/search/search.py", line 77, in search
results = self.index.search(string, weights=boosts, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pizamonday/.local/lib/python3.12/site-packages/bw2data/search/indices.py", line 181, in search
*self._process_condition(filter, filter_entity)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pizamonday/.local/lib/python3.12/site-packages/bw2data/search/indices.py", line 162, in _process_condition
raise ValueError("unsupported argument type: {}".format(type(v)))
ValueError: unsupported argument type: <class 'list'>
we can only search by "name" (with the possibility to search by location)
allow the user to search by given classification:
s -c {cpc} -cv {43913} -loc {row}
for example. the "location" part is not priority
We can see the upstream exchanges, but not the pedigree if there is such
If pedigree exists, show it in the list.
Allow the user to
Currently, only the produced conda packages are documented on how to install them.
users must be warned in the readme that the pypi packages are built with abstract dependencies ("bw2calc", "bw2analyzer") and that it's their responsability to make sure they are present in the system, with versions compatible between them and with either brightway25 or brightway2.
Note
The requirements here are abstract, but they are different for brightway25
and brightway2
.
For brightway25, bw2calc must be >= 2.0.dev10
and bw2analyzer >= 0.11
for brightway2 bw2calc must be < 2
and bw2analyzer >=0.10
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
This comes from a forgotten issue @ the original repo:
Here are some examples:
https://vincent.readthedocs.org/en/latest/
https://plot.ly/~alex/76/
http://stanford.edu/~mwaskom/software/seaborn/index.html
http://marvl.infotech.monash.edu/webcola/
http://js.cytoscape.org/#layouts/cola
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
The .org domain is deprecated in favor of a .dev
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
Current
Search allows to filter results by location with the “s -loc {XX}” command
Expected
Search allows to filter results by category with the “s -cat {cat::subcat::subsubcat}” command, where subcat and subsubcat are optional
When using the u
command to visualize the exchanges, we only see the "inputs" and their amounts
If there is pedigree
information on the exchanges, display it with a new command (uee
?)
Original report by Anonymous.
I you start bw2-browser, select a project and immediately "search" for an activity, the browser crashes with:
Projects
[0]: default
[1]: universe
Page 0 of 1. Use n (next page) and p (previous page) to navigate.
>> 1
Databases
[0]: biosphere3 (4321 activities/flows)
[1]: universe-cutoff (42 activities/flows)
Page 0 of 1. Use n (next page) and p (previous page) to navigate.
ecoinvent36 >> s meaning of life
Traceback (most recent call last):
File "/opt/conda/bin/bw2-browser", line 10, in <module>
sys.exit(main())
File "/opt/conda/lib/python3.9/site-packages/bw2ui/bin/bw2_browser.py", line 1337, in main
activitybrowser.cmdloop()
File "/opt/conda/lib/python3.9/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/opt/conda/lib/python3.9/cmd.py", line 217, in onecmd
return func(arg)
File "/opt/conda/lib/python3.9/site-packages/bw2ui/bin/bw2_browser.py", line 1024, in do_s
results = Database(self.database).search(needle, limit=self.search_limit)
File "/opt/conda/lib/python3.9/site-packages/bw2data/backends/peewee/database.py", line 530, in search
with Searcher(self.filename) as s:
File "/opt/conda/lib/python3.9/site-packages/bw2data/backends/base.py", line 122, in filename
return safe_filename(self.name)
File "/opt/conda/lib/python3.9/site-packages/bw2data/filesystem.py", line 32, in safe_filename
return safe + u"." + hashlib.md5(string).hexdigest()
TypeError: object supporting the buffer API required
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
The package is all python, no c extensions in the ext_modules in setup.py, so we should be publishing a noarch package.
After the migration from bb to github, we lost the CI/CD pipelines.
Use github actions to build the packages and deploy them.
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
make it easier to install the package with pip for example
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
when invoking the d
command to list the downstream consummers, nothing appears
a list of the numbered downstream consumers must be displayed
Original report by Tomas Navarrete Gutierrez (Bitbucket: tomas_navarrete, ).
Add a feature to provide the user a sample of code to reproduce the latest command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.