diff --git a/sandbox.py b/sandbox.py deleted file mode 100644 index c5c8ae38..00000000 --- a/sandbox.py +++ /dev/null @@ -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() diff --git a/src/primaite/notebooks/.gitkeep b/src/primaite/notebooks/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/primaite/notebooks/scratch.ipynb b/src/primaite/notebooks/scratch.ipynb deleted file mode 100644 index 4e873460..00000000 --- a/src/primaite/notebooks/scratch.ipynb +++ /dev/null @@ -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 -}