fresna / vresutils Goto Github PK
View Code? Open in Web Editor NEWVarying Renewable Energy System Utilities
License: GNU General Public License v3.0
Varying Renewable Energy System Utilities
License: GNU General Public License v3.0
File "C:\Users\travis\build\PyPSA\pypsa-eur\.snakemake\shadow\tmpi4zbpqvn\.snakemake\scripts\tmp1jwceb1d.solve_network.py", line 394, in <module>
with memory_logger(filename=getattr(snakemake.log, 'memory', None), interval=30.) as mem:
File "C:\miniconda\envs\pypsa-eur\lib\site-packages\vresutils\benchmark.py", line 161, in __enter__
self.p.start()
File "C:\miniconda\envs\pypsa-eur\lib\multiprocessing\process.py", line 112, in start
self._popen = self._Popen(self)
File "C:\miniconda\envs\pypsa-eur\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\miniconda\envs\pypsa-eur\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\miniconda\envs\pypsa-eur\lib\multiprocessing\popen_spawn_win32.py", line 89, in __init__
reduction.dump(process_obj, to_child)
File "C:\miniconda\envs\pypsa-eur\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot serialize '_io.TextIOWrapper' object
related: PyPSA/pypsa-eur#42
Hello,
Thanks for the new fix of numpy and shapely; when will the new version be available in pypi?
There's a new ShapelyDeprecationWarning in graph.py that will cause an error in Shapely 2.0. Not sure why it appears and therefore didn't find a way to fix it.
vresutils/graph.py:529: ShapelyDeprecationWarning:
__len__ for multi-part geometries is deprecated and will be removed in Shapely 2.0. Check the length of the `geoms` property instead to get the number of parts of a multi-part geometry.
I think the warning appears somewhere here: https://github.com/FRESNA/vresutils/blob/master/vresutils/graph.py#L528-L530
Dear developer,
when working at the issue pypsa-meets-earth/pypsa-earth#99 , I noticed that when applying the voronoi partitioning with few points in the shape the result was the one shown below.
That was due to the limits in the size of the voronoi shape that was limited to the size of the points (with a multiplier), while the outline shape was not considered.
Shortly, I post a Pull request to solve the issue.
When using MockSnakemake I get the following error:
YAMLLoadWarning: calling yaml.load() without Loader=...
is deprecated, as the default Loader is unsafe. Please read
https://msg.pyyaml.org/load for full details.
self.config = yaml.load(f)
As written in the PyYAML doc, there has been filed a CVE against the module. So I would suggest to change line 38 in vresutils.snakemake from self.config = yaml.load(f)
to self.config = yaml.save_load(f)
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.