by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Rodrigo Amaro e Silva
    @ramaroesilva
    @luzgui and I tried out this one_way solution ourselves just recently, and in our case we got that error whenever we defined an om_prod or an om_con for the transmission tech
    our interpretation is that the "one_way" makes the con and prod inexistent for the "blocked" direction and thus calliope cannot apply the costs (which are assumed for both directions)
    Bryn Pickering
    @brynpickering
    thanks for the update @ramaroesilva, looks like a bug to create an issue from! I've done so here: calliope-project/calliope#316
    Rodrigo Amaro e Silva
    @ramaroesilva
    Hi everyone. This review work might be of interest for the calliope community:
    https://www.sciencedirect.com/science/article/pii/S1364032120302082
    Rodrigo Amaro e Silva
    @ramaroesilva
    Question for the day: is there any configuration on Calliope where we can define that once a generator is turned on, it can only be turned off after N timesteps of operation?
    Francesco Lombardi
    @FLomb
    hey Rodrigo, I think this is a feature that has been requested a couple of times already, and which is currently - unless I've overlooked some of the recent changes - not available
    or perhaps not precisely, because what was asked before was a general constraint that may allow setting a number of "operating hours" for a given plant over the year, not a "minimum number of operating hours after switch on"
    what you ask is something one could add to the MILP formulation, because clearly it requires having an integer description of generators to be able to figure out which one is on and which one is off
    Rodrigo Amaro e Silva
    @ramaroesilva
    Thanks for the feedback Francesco ;)
    Rodrigo Amaro e Silva
    @ramaroesilva

    Hi everyone.

    Tried to create today a new calliope 0.6.5 environment and when everything was installed, running my code gave the following error:

    "ImportError: pyutilib.enum has been removed.

    Python 3 now has an enum implementation in the standard library (also available for older Python versions as the third-party enum34 PyPI package) that supersedes this library."

    Rodrigo Amaro e Silva
    @ramaroesilva
    With the help of @luzgui, we found out that this happens for version 6.0.0 of pyutilib.
    So I created my calliope environment specifically with pyutilib=5.8.0
    Bryn Pickering
    @brynpickering
    Yeah, seems this is a dependency issue that has been flagged here calliope-project/calliope#318
    We'll probably push a fixed minor release soon, to deal with this. For now, as you say @ramaroesilva, you can install a working environment with: conda create -n calliope -c conda-forge calliope=0.6.5 pyutilib=5.8.0
    Rodrigo Amaro e Silva
    @ramaroesilva
    Thanks Bryn! Btw, I promise I'll start looking first at Calliope's issues to avoid redudant posts here O:)
    Bryn Pickering
    @brynpickering
    haha, it wasn't my aim to guilt trip you into doing so ;)
    It seems that some change in dependencies has led to everyone having this installation problem at the same time
    Rodrigo Amaro e Silva
    @ramaroesilva
    Hi calliope community! Two comments:
    1) in https://calliope.readthedocs.io/en/stable/user/config_defaults.html, "resource_area_per_energy_cap" is described as a boolean although, when defined, it is a float
    2) in the clustering advanced feature support text, it would nice to include "The final time series is then re-scaled to match the mean of the original time series."
    Source: "Dealing with multiple decades of hourly wind and PV time series inenergy models: A comparison of methods to reduce time resolution andthe planning implications of inter-annual variability" from @sjpfenninger
    nakaret-b
    @nakaret-b
    Hello All, I am a graduate student and I have just started to learn Calliope. I have read tutorials in Calliope website but still get confused. I have 3 basic questions 1): how can I open and modify the model? at the moment what I do is go to Calliope folder/example_models/national_scale/ and open by text editor. 2): in the tutorials, there are links to jupyter notebook, the code in this notebook is used to run the model only, am I correct? 3): Do I need to know about coding in Python? I would be great if there is tutorial video in the Youtube for the beginner like me. Thank for advanced.
    Rodrigo Amaro e Silva
    @ramaroesilva

    hi @nakaret-b. my personal take on your questions:

    1) to edit the models you will have to customize the .yaml files (which can be done in any text processor, although I would suggest tools such as Spyder or Atom).

    2) you can edit and run the models in Jupyter Notebook, edit+run in a Python IDE (e.g. Spyder) or edit in a text editor (e.g. Atom) + run in the terminal

    3) I would suggest understanding some basic Python (there are tons of videos/tutorials on the internet) and getting a good grasp on the .yaml sintax (as these are the files that define your model) by trying to understand the examples from the tutorials and documentation

    Cameron Wade
    @_clameron_gitlab
    Hi @sjpfenninger @brynpickering , I'm wondering if there's any plan -- near or long term -- to expanding Calliope to have multiple investment periods? Thanks!
    nakaret-b
    @nakaret-b
    Thank you @ramaroesilva , your answers are very helpful for me. I downloaded a national scale example model- Jupyter notebook(tutorial1 ), then, I run the model on Mac OS, everything is fine and I found that the Calliope model of this example (YAML files) is stored in opt/anaconda3/envs/calliope/lib/python3.8/site-packages/calliope/example_models. There are 2 folders here national_scale and urban_scale. My question is: Can I copy these folders to desktop and run via Jupyter notebook? because I want to edit the YAML files with Spyder but the path to these folders is hidden on Mac so Spyder did not see them. Now I copied them to desktop and can edit via Spyder but I don't know how to code in Notebook to get the model on desktop. I think I need to modify this code "model = calliope.examples.national_scale()" in Jupyter notebook. Please advise.
    Rodrigo Amaro e Silva
    @ramaroesilva
    @_clameron_gitlab, what do you mean?
    @nakaret-b, just as you said, you should first copy the folder to some familiar directory. it should contain the following:
    image.png
    Rodrigo Amaro e Silva
    @ramaroesilva
    for running your custom/personal models, take a look at https://calliope.readthedocs.io/en/stable/user/running.html
    Bryn Pickering
    @brynpickering

    @nakaret-b, @ramaroesilva is right, you just need to have the model in a known directory, then you can load it using calliope.Model(...), as mentioned in https://calliope.readthedocs.io/en/stable/user/running.html. The content of the example model YAML files can also be found in the documentation. You can get away with not knowing Python, by just editing the relevant YAML files and running the model via the command line.

    @_clameron_gitlab, I assume you mean an optimisation that allows technology investment to take place at points in time that aren't the first timestep? E.g. optimising over several years and allowing new investment at the start of each year. We have that on the timeline for development this year. If you have thoughts on what you'd like to see in that feature, or ideas on how it could be well implemented, you can join the discussion on the GitHub issue (calliope-project/calliope#125) :)

    Cameron Wade
    @_clameron_gitlab
    @brynpickering (and @ramaroesilva ) yep, that's exactly what i meant. And thanks for pointing me to the discussion, I'll be happy to join in! I see Tom Brown and the PyPSA developers are also heading in that direction.
    Bryn Pickering
    @brynpickering
    Yep, based on the discussion I read on the openmod mailing list, I expect the result will look similar. The difference will probably be around the chosen simplifications in pypsa/calliope to ensure model tractability
    nakaret-b
    @nakaret-b
    @ramaroesilva, @brynpickering , I have tried this " model = calliope.Model('Nakaret1/Desktop/Python/national_scale') " but there is an error message "FileNotFoundError: [Errno 2] No such file or directory: 'Nakaret1/Desktop/Python/national_scale'", Please advise me to correct this error. Thanks a lot.
    Bryn Pickering
    @brynpickering
    take a look at the documentation and you'll see that you need to point to the model.yaml file, not the directory
    and if you're on Windows, it might expect you to use backslashes to describe your path
    Graeme Hawker
    @GraemeHawker
    Hi all, long time no etc, just to add to the list of publications: https://www.sciencedirect.com/science/article/pii/S0301421520300781
    Bryn Pickering
    @brynpickering
    Great! We've now made it possible to add to our list of publications directly via a PR: https://github.com/calliope-project/callio.pe