Merge of two demand sector in muse

48 views
Skip to first unread message

Sonja “sonja_stardust”

unread,
Nov 24, 2023, 1:15:47 PM11/24/23
to MUSE
Hi everybody,

I have an error in a simplified version of my model in which I merge two demand dectors: industry that produce one material commodity and transport that produce one service commodity.
I set the demand in the preset folder for both sectors for 2020,2050,2070. I modified the toml file like this for both sectors because otherwise it was not able to read both file sectors:
[sectors.industry_presets]
        type = 'presets'
        priority = 0
        consumption_path= "{path}/technodata/preset/Industry*Consumption.csv" 
instead of *Consumption
...
consumption_path= "{path}/technodata/preset/Transport*Consumption.csv"  .

Now I have the following error:
Traceback (most recent call last):
  File "C:\Users\anaconda3\envs\museos\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\anaconda3\envs\museos\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\MUSE_OS\src\muse\__main__.py", line 55, in <module>
    muse_main()
  File "C:\Users\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "C:\Users\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "C:\Users\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Users\AppData\Roaming\Python\Python38\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "C:\Users\MUSE_OS\src\muse\__main__.py", line 52, in muse_main
    MCA.factory(settings).run()
  File "C:\Users\MUSE_OS\src\muse\mca.py", line 74, in factory
    sectors.append(SECTORS_REGISTERED[kind](sector, settings))
  File "C:\Users\MUSE_OS\src\muse\sectors\preset_sector.py", line 105, in factory
    raise IOError("None of supply, consumption, costs given")
OSError: None of supply, consumption, costs given


It seems the the model does not work without the supply sector but the single demand sectors work correclty if they are runned separately without any supply. Is it possible that this is due to other kind of mistakes?

Thank you in advance for your help
S.


Sonja “sonja_stardust”

unread,
Nov 27, 2023, 6:23:38 PM11/27/23
to MUSE
I solved this problem. It was not related to the supply as the error mentioned but was linked to the settings in the toml file and files locations.

sgiarols

unread,
Dec 19, 2023, 4:05:21 AM12/19/23
to MUSE
Dear Sonja,
glad you found your way out.
In general, the preset can contain the demand for commodity of different sectors. So the demand of different sectors do not need necessarily to be split in different pre-set.
The error you mentioned typically happens if there are is no supply of a certain commodity and can depend on different reasons, typically technologies not present in a sector.
It relates to the other thread you opened 
BR
MUSE team
Reply all
Reply to author
Forward
0 new messages