Remove temporary files

This commit is contained in:
Marek Wolan
2023-10-27 14:41:53 +01:00
parent b81c1739f8
commit 75d1fd20c3
3 changed files with 0 additions and 128 deletions

View File

@@ -1,21 +0,0 @@
# flake8: noqa
import logging
from primaite import _PRIMAITE_CONFIG, PRIMAITE_PATHS
from primaite.game.session import PrimaiteSession
_PRIMAITE_CONFIG["log_level"] = logging.DEBUG
print(PRIMAITE_PATHS.app_log_dir_path)
import yaml
from primaite.game.agent.interface import AbstractAgent
from primaite.game.session import PrimaiteSession
from primaite.simulator.network.networks import arcd_uc2_network
from primaite.simulator.sim_container import Simulation
with open("example_config.yaml", "r") as file:
cfg = yaml.safe_load(file)
sess = PrimaiteSession.from_config(cfg)
sess.start_session()

View File

View File

@@ -1,107 +0,0 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from primaite.simulator.network.networks import arcd_uc2_network\n",
"%load_ext autoreload\n",
"%autoreload 2"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"net = arcd_uc2_network()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### set up some services to test if actions are working"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"db_serv = net.get_node_by_hostname('database_server')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from primaite.simulator.system.services.database_service import DatabaseService"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"db_svc = DatabaseService(file_system=db_serv.file_system)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"db_serv.install_service(db_svc)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"db_serv.describe_state()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}