rl-institut / mvs_eland_api Goto Github PK
View Code? Open in Web Editor NEWThis server recieves json input files, build an oemof model and run a simulation, then sends a json file back.
License: GNU Affero General Public License v3.0
This server recieves json input files, build an oemof model and run a simulation, then sends a json file back.
License: GNU Affero General Public License v3.0
There are some examples of energy systems that can be sent to the MVS (no 500 Error
), but then no results are received by the EPA and an ERROR
is displayed in the status bar. There is an energy system in the testUser
account that runs through, so we need to figure out where the issue arises - at EPA side when parsing the inputs, when reading into the MVS, parsing the MVS results into EPA format or on EPA side when parsing the results.
Examples of energy systems in account martha.hoffmann
:
Todos:
The import in task_queue/tasks.py has to be adapted and the requirement file updated. Then these changes must be pulled onto the RLI server and the docker restarted to update the online app
Something along those lines
zipped_file = BytesIO()
with zipfile.ZipFile(zipped_file, 'a', zipfile.ZIP_DEFLATED) as zipped:
csv_data = StringIO()
writer = csv.writer(csv_data, delimiter=',')
writer.writerow(["test", "data"])
csv_data.seek(0)
csv_buffer = csv_data.read()
zipped.writestr(f"test_data.csv", csv_buffer)
zipped_file.seek(0)
response = StreamingResponse(zipped_file, media_type="application/x-zip-compressed")
response.headers["Content-Disposition"] = "attachment; filename=test.zip"
return JSONResponse(content=jsonable_encoder(answer))
One of the scenarios in martha.hoffmann
on the EPA online version is the "Warehouse 14" scenario. It terminates with status ERROR.
MVS json request file send from EPA:
warehouse_14.txt
The file can be parsed and initiates the simulation, but one key seems to be missing:
Traceback (most recent call last):
File "tests/test_benchmark_scenarios.py", line 369, in <module>
help_execute(file_4)
File "tests/test_benchmark_scenarios.py", line 361, in help_execute
run_simulation(dict_values)
File "d:\pycharmprojects\mvs_eland\src\multi_vector_simulator\server.py", line 95, in run_simulation
C0.all(dict_values)
File "d:\pycharmprojects\mvs_eland\src\multi_vector_simulator\C0_data_processing.py", line 78, in all
C1.check_feedin_tariff_vs_levelized_cost_of_generation_of_production(dict_values)
File "d:\pycharmprojects\mvs_eland\src\multi_vector_simulator\C1_verification.py", line 189, in check_feedin_tariff_vs_levelized_cost_of_generation_of_production
dict_values[ENERGY_PRODUCTION][production_asset][DISPATCHABILITY]
KeyError: 'dispatchable'
No keys are indicated to be missing, so I suppose that the issue is within the MVS. It may have to do with some decisions in C0
, where dispatchablility might have been attibuted depending on whether or not a file_name
was provided for the timeseries.
Sub-dependencies from package installed upon multi-vector-simulator[report]
fail to install, even by adding apt-get install python3.7-dev -y
to Dockerfile
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.