Git Product home page Git Product logo

Comments (8)

catherinebirney avatar catherinebirney commented on August 15, 2024

@bl-young Thanks for pointing this issue out. It is a necessary step for some of the mappings I'm working with. I moved the "add_sectors_to_flowbyactivity" into the for loop that runs through each of the activities in the "names" list of an activity set. This way the NAICS are assigned to each SCC, one at a time, so the NAICS shouldn't be dropped.

from flowsa.

WesIngwersen avatar WesIngwersen commented on August 15, 2024

@bl-young let us know if this is still a problem or otherwise go ahead and close, thanks

from flowsa.

bl-young avatar bl-young commented on August 15, 2024

I'm still getting unexpected results where the allocation to sectors is wrong. I will post a more detailed update.

from flowsa.

bl-young avatar bl-young commented on August 15, 2024

Its still unclear to me why we are removing NAICS in line 119 that already exist in the mapping file

from flowsa.

catherinebirney avatar catherinebirney commented on August 15, 2024

Ok - I see how the current method of implementation can cause problems. The objective is to prevent existing data from being overwritten. For instance, in the USDA_IWMS mapping, we have:
ORCHARDS =1113
BERRY TOTALS =111334
I want the water application rates (acre-feet/acre) for orchards disaggregated to naics6, but I don't want the acre-feet/acre for berry totals to be overwritten by the orchards value, so I was dropping the mapping 1113 -> 111334.
The code needs to be revised so it doesn't blanket drop existing NAICS. Let me think about it...

from flowsa.

bl-young avatar bl-young commented on August 15, 2024

But wouldn't you still want the value included in Orchards to apply to Berries just like all other subsets of 1113?

from flowsa.

catherinebirney avatar catherinebirney commented on August 15, 2024

The issue is with how I set up the crosswalk for USDA IWMS. We can remove line 119 (and associated code).

from flowsa.

bl-young avatar bl-young commented on August 15, 2024

resolved here

from flowsa.

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.