GithubHelp home page GithubHelp logo

Comments (9)

romainsacchi avatar romainsacchi commented on September 18, 2024

Hi @simb-sdu , can you tell me the exact scenarios you tried to produce?

from premise.

simb-sdu avatar simb-sdu commented on September 18, 2024

Hi Romain, it is EI 3.8 SSP2-base for the years 2020, 2050, and 2100

Had the use before, but it seemingly disappeared on its own. Now running the same code and a new pc raises this issue.

Yesterday, I changed the value of max_cols in ~\Anaconda3\envs\premise\lib\site-packages\pandas\io\formats\excel.py and got it working. But it surprises me that this is necessary?

from premise.

romainsacchi avatar romainsacchi commented on September 18, 2024

Yes, I think premise produces excel files that are unnecessarily too long.
Some rows in the excel file should not be.
I will look into it and come back with a fix.

from premise.

romainsacchi avatar romainsacchi commented on September 18, 2024

Hi @simb-sdu,
I think I fixed the issue, but not quite sure. Hence, Iยดd be grateful if you can test it out for me before I make the release public.
If you are willing, then you can:

  • uninstall (pip uninstall premise if you used pip)
  • install the current development version of premise by doing pip install git+https://github.com/polca/premise.git
  • to make sure you got the proper version, it should say 1.0.9

from premise.

romainsacchi avatar romainsacchi commented on September 18, 2024

I will otherwise try also on my end in the meanwhile.

from premise.

romainsacchi avatar romainsacchi commented on September 18, 2024

Hi @simb-sdu ,
it seems to work fine now. I re-produced the three scenarios you mentioned, and the Excel file is now "only" 353'000 rows long and 17 mb large. So I will push the 1.0.9 release to Pypi and consider the issue closed unless you experience something different on your end.

from premise.

simb-sdu avatar simb-sdu commented on September 18, 2024

Hi @simb-sdu , it seems to work fine now. I re-produced the three scenarios you mentioned, and the Excel file is now "only" 353'000 rows long and 17 mb large. So I will push the 1.0.9 release to Pypi and consider the issue closed unless you experience something different on your end.

Hi Romain

Thanks for looking into this. Sounds like a great improvement in efficiency from 2.5M rows to 0.35M rows!
And sorry for not being able to test before the push of 1.0.9, I have so much going on at this moment

I just ran pip install --upgrade premise but now I get an error when running import premise or from premise import *

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 from premise import *
      2 import brightway2 as bw

File ~\Anaconda3\envs\PREMISE107\lib\site-packages\premise\__init__.py:9, in <module>
      6 DATA_DIR = Path(__file__).resolve().parent / "data"
      7 INVENTORY_DIR = Path(__file__).resolve().parent / "data" / "additional_inventories"
----> 9 from .ecoinvent_modification import NewDatabase, clear_cache

File ~\Anaconda3\envs\PREMISE107\lib\site-packages\premise\ecoinvent_modification.py:65, in <module>
     63 from .cement import Cement
     64 from .clean_datasets import DatabaseCleaner
---> 65 from .custom import (
     66     Custom,
     67     check_custom_scenario,
     68     check_inventories,
     69     detect_ei_activities_to_adjust,
     70 )
     71 from .data_collection import IAMDataCollection
     72 from .electricity import Electricity

File ~\Anaconda3\envs\PREMISE107\lib\site-packages\premise\custom.py:7, in <module>
      5 import wurst
      6 import yaml
----> 7 from schema import And, Optional, Or, Schema, Use
      9 from .ecoinvent_modification import (
     10     LIST_IMAGE_REGIONS,
     11     LIST_REMIND_REGIONS,
     12     SUPPORTED_EI_VERSIONS,
     13 )
     14 from .transformation import *

ModuleNotFoundError: No module named 'schema'

from premise.

romainsacchi avatar romainsacchi commented on September 18, 2024

@simb-sdu sorry, you can fix that in the meanwhile by installing schema pip install schema.
I will push a fix.

from premise.

simb-sdu avatar simb-sdu commented on September 18, 2024

thank you

from premise.

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.