Giter Site home page Giter Site logo

wurst's People

Contributors

brianlcox avatar cmutel avatar kais-siala avatar pbaustert avatar romainsacchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wurst's Issues

Get region codes

REGIONS = [(row, ws.cell(row=row, column=2).value) for row in range(5, 47)]

Brian found an error, it is taking the data until line 45 (index 46) missing the last line of the data with RoW. So it should be 47 instead of 46 in the line of code.

ecoinvent filters for oil electricity have to exclude nuclear

the current oil electricity filters have to exclude nuclear, because 'boiling water reactor' is also selected here.

oil_open_cycle_electricity = [
contains('name', 'oil'),
contains('name', 'electricity'),
equals('unit', 'kilowatt hour'),
exclude(contains('name', 'combined cycle')),
]

oil_combined_cycle_electricity = [
contains('name', 'oil'),
contains('name', 'electricity'),
equals('unit', 'kilowatt hour'),
contains('name', 'combined cycle'),
]

oil_chp_electricity = [
contains('name', 'oil'),
contains('name', 'heat and power'),
equals('unit', 'kilowatt hour'),
]

NoResults: No suitable production exchanges founds

Hello all,

I am trying to link and save an excel database, but I am getting an error (screenshot attached). Could you please let me know what might be the possibility for the error to occur?

Thank you!
image

keyerror with copy_to_new_location

I tried to test the copy_to_new_location function but I got a keyerror message. The code was the following

import wurst as w
boiler_ch=w.get_one(db,
                     w.searching.contains('name', 'light fuel oil'),
                     w.searching.contains('name', '10kW condensing'),
                     w.searching.equals('location', 'CH'),
                    )
boiler_qc=w.copy_to_new_location(boiler_ch,'CA-QC')

db is a version of ecoinvent 3.3 cutoff. get_one correctly identifies the activity , but I get a couple of messages (one an error) when executing copy_to_new_location

Successfully switched activity dataset to new code c9cc73b5becb4509804660ec8abf00e9
KeyError: 'exchanges'

I am using the following versions: wurst==0.1.dev2; brightway2==2.1.1

please let me know if you prefer that I post it as a question in stackoverflow instead opening an issue here.

keyerror_msg_copy to new location

parameter keys are different when exporting

here is the current code:
'parameters': {key: value['amount'] for key, value in proxy.data.get('parameters', {}).items()}

This means that in an unimported ecoinvent I would access the efficiency value with something like:

ds['parameters']['efficiency']['amount']

but if I export with wurst, I have to access the same parameter with:

ds['parameters']['efficiency']

function empty_high_voltage_markets needs to also remove imports

The function empty_high_voltage_markets should also delete all imports of electricity.

I have written my own function to delete all electricity inputs (except own consumption). it looks like this and seems to work:

def delete_electricity_inputs_from_market(ds):
    # This function reads through an electricity market dataset and deletes all electricity inputs that are not    
    # own consumption. 
    ds['exchanges'] = list(get_many(
        ds['exchanges'], 
        either(
            exclude(contains('unit', 'kilowatt hour')),
            contains('name', 'market for electricity, high voltage'),
            contains('name', 'market for electricity, medium voltage'),
            contains('name', 'market for electricity, low voltage'),
            contains('name', 'electricity voltage transformation')
        )
    ))
    return ds

Inconsistency between `name` and `activity`

In the current schema, an activity has the field name in its metadata, but this same field is called activity in the exchange metadata. We can call it name in both cases - this decreases cognitive load and unpleasant surprises.

Reported by @brianlcox

Need parameters (efficiency) in database extract

Hi Chris,

We need the efficiency parameter extracted with the database!

I have found (so far) three different ways that the efficiency parameter could be labelled:

['parameters']['efficiency']['amount']
['parameters']['efficiency_oil_country']['amount']
['parameters']['efficiency_electrical']['amount']

Sometimes it's also hidden in the comments section, but there isn't much we can do about that...

Thanks,

Brian

empty file wurst/ecoinvent/__init___.py leads to error: "ImportError: cannot import name 'ECOINVENT_ORDERED_GEO' from 'wurst.ecoinvent'"

Trying to execute the marginal mixes wurst notebook example but got an error
ImportError: cannot import name 'ECOINVENT_ORDERED_GEO' from 'wurst.ecoinvent'

I see also that others have encountered the same issue. I contacted Laurant Vandepaer, who has no solution.

It seems that the wurst/ecoinvent/init_.py file is empty as per 28 sept 2017. I found the previuos file version in the commit history. copied the lines of code into my local init_.py file to resolve the issue.

I wanted to share this workaround in case others might be interested. I am new to github, and don't know how to contribute this? hence i made this post. Is it correct understood that I should make a "pull request" for the commit of 28 sept 2017, which deleted all lines of code from the init_.py file? I cant figure out how to do this :-)

Best regards, Simon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.