Adding component values to the pypsa Network manually
114 views
Skip to first unread message
swagat panda
unread,
Sep 6, 2021, 5:29:30 AM9/6/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pypsa
Hello Everyone,
I have a small question. I want to add all network components to an empty pypsa network manually using normal pandas dataframe manipulations, instead of Network.add or .madd methods.
Will that cause any unwanted or undetectable issues later on during lopf? Are there some attributes that will not be modified by this? (On visual inspection of the NetCDF file I didn't notice any difference)
----
Thanks and Regards
Swagat Panda
Neumann, Fabian
unread,
Sep 6, 2021, 6:07:27 AM9/6/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to swagat panda, pypsa
Hi Swagat,
there are also functions to import components from dataframes
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pypsa
Hi Fabian,
Thanks for the answer. It's a lifesaver 😊. But still, for the sake of clarity, it is also okay to use custom methods using
pandas dataframe to insert components and values, right?
----
Thanks and Regards
Swagat Panda
Fabian Neumann
unread,
Sep 7, 2021, 3:32:43 AM9/7/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to swagat panda, pypsa
Yes, I think so. You may just need to be extra careful with providing
suitable values for every attribute as the defaults won't apply
automatically.
You may want to use n.consistency_check().
Best wishes,
Fabian N
On 06/09/2021 12:49, swagat panda wrote:
> Hi Fabian,
>
> Thanks for the answer. It's a lifesaver 😊. But still, for the sake of
> clarity, it is also okay to use custom methods using
> pandas dataframe to insert components and values, right?
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "pypsa" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pypsa+un...@googlegroups.com