Giter Site home page Giter Site logo

Comments (6)

m-jamieson avatar m-jamieson commented on July 18, 2024

The if statement is just setting the base inventory, and the order of the if statement is just setting the preferred order. StEWI will still process the other three inventories because "model_specs.inventories_of_interest" is passed to stewicombo.combineInventoriesforFacilitiesinBaseInventory. It's been a while since I looked at it, but I believe the base inventory provides the facility ID numbers that are used to match the other inventories to since those datasets have their own unique facilitiy IDs. @bl-young might be able to confirm.

from electricitylci.

bl-young avatar bl-young commented on July 18, 2024

Yes that's right. The base inventory serves as the source of the facility list I believe, but the rest of the inventories are brought in and matched to facilities in the base inventory

from electricitylci.

dt-woods avatar dt-woods commented on July 18, 2024

Could I trouble you for a few sentences that capture this behavior? @bl-young, is there more documentation on what filter_for_lci does? It's a little hard to discern without documentation, but it seems to trigger 5 other filters (in filters.yaml). Is that right?

Correct me if I'm wrong, but what I'm hearing so far is the following:

Assign the reference inventory (e.g., eGRID, NEI, TRI, RCRAInfo) to be used for defining the facility-level inventories gathered from each of the inventories of interest (as defined in the model's configuration file) using USEPA's stewi package. Data are filtered for LCI (whatever that means).

from electricitylci.

dt-woods avatar dt-woods commented on July 18, 2024

@m-jamieson, the documentation in the wiki for this module reads,

This module will either use an existing inventory determined from the inventories_of_interest specified in the configuration file or create one by calling stewicombo from Standardized Emission and Waste Inventories (StEWI). If there is no existing CSV file the call to stewicombo to generate the inventory can take some time. It should be noted that this module is executed immediately upon import, which may cause some unexpected delays if the CSV file is not present.

Reading the code, it looks like from the first sentence, you are actually looking for an existing inventory determined by model_specs.stewicombo_file and not inventories_of_interest and that inventories_of_interest are used to gather inventories from stewi. Am I reading this correctly?

from electricitylci.

m-jamieson avatar m-jamieson commented on July 18, 2024

You're more than likely reading that correctly. A lot of this wiki was developed concurrently with the final version of model_specs. I suspect that rather than "calcuating" a string name from the inventories_of_interest, we opted just to have a variable to specify it.

from electricitylci.

bl-young avatar bl-young commented on July 18, 2024

If there is no existing CSV file the call to stewicombo to generate the inventory can take some time. It should be noted that this module is executed immediately upon import, which may cause some unexpected delays if the CSV file is not present.

I will add that we now have the ability to point to a locally stored, or externally sourced via data commons, combined inventory file (via stewicombo_file), as a replacement for the csvs in the repository. The wiki likely predates that entirely

from electricitylci.

Related Issues (20)

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.