Comments (9)
Hi @simb-sdu , can you tell me the exact scenarios you tried to produce?
from premise.
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.
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.
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.
I will otherwise try also on my end in the meanwhile.
from premise.
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.
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.
@simb-sdu sorry, you can fix that in the meanwhile by installing schema pip install schema
.
I will push a fix.
from premise.
thank you
from premise.
Related Issues (20)
- Increasing GHG footprint over time for electricity in RCP scenarios HOT 3
- for inventory imports of external scenarios: capitalized letters cause errors HOT 2
- About Ecoinvent Version Adaptation HOT 1
- Suggestion: append scenario diff files name with date of creation HOT 1
- Premise brightway2 import ecoinvent HOT 2
- generate_change_report() fails with PermissionError HOT 3
- Adjsut mounting panels
- Check distance for CCS
- An Issue related to "write_db_to" function HOT 13
- A problem about energy-perspective-2050-switzerland example HOT 2
- use_multiprocessing no longer keyword argument in NewDatabase
- A problem with "ndb.update_external_scenario()" HOT 4
- [Errno 2] No such file or directory HOT 14
- KeyError: about "Can't find linking activity for exchange" HOT 16
- FileNotFoundError HOT 1
- updating to premise 2.1.1 HOT 5
- AttributeError: 'ProjectManager' object has no attribute 'migrate_project_25' HOT 1
- Dimension mismatch between technosphere and biosphere when exporting matrices HOT 7
- type hinting of key HOT 1
- Use of external scenarios fails if exchange amount is 0 and exchange has uncertainty HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from premise.