Skip to content

Commit

Permalink
🐛 apply suggested changes from @nils
Browse files Browse the repository at this point in the history
  • Loading branch information
PitButtchereit committed May 26, 2024
1 parent ce6e8f5 commit 77a4ed9
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 41 deletions.
2 changes: 1 addition & 1 deletion tracex_project/extraction/logic/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def initialize_modules(self):
}
return modules

def run(self, view=None):
def run(self, view=None) -> None:
"""Run the modules and set default values for modules not executed."""
modules = self.initialize_modules()
execution_step: int = 1
Expand Down
2 changes: 1 addition & 1 deletion tracex_project/extraction/templates/result.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>Success! The TracEX pipeline produced the following results:</h1>
</script>

{% if trace_table %}
<button id="toggleButton1" class="function_button">Show/Hide extracted Event Log from Journey</button>
<button id="toggleButton1" class="function_button">Show/Hide extracted Trace from Journey</button>
<div id="contentWrapper1" style="display: none;">
<p><b>This is the event log extracted from the journey above.</b></p>
<div id="xesContent1" class="xes_container">{{ trace_table|safe }}</div>
Expand Down
14 changes: 0 additions & 14 deletions tracex_project/patient_journey_generator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +0,0 @@
"""
Provide the django app "patient_journey_generator" for the project.
This app is responsible for generating artificial patient journeys. These patient journeys are called "synthetic"
patient journeys and can be used for testing purposes as well as if you have no real-world patient journey at hand.
However, due to the patient journey being synthetic, it does not accurately reflect real-world data.
Modules:
apps -- App configuration for the patient journey generator app.
forms -- Implementation of forms for the patient journey generator app.
generator -- Provides functionality to generate a patient journey.
urls -- URL configuration for the patient journey generator app.
views -- Implementation of views for the patient journey generator app.
"""
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2>Generated Journey</h2>

<img src="{% static '/tracex/img/patient_journey_generator_logo.png' %}" alt="Patient Journey Generator Logo" class="patient_journey_generator_logo">
<h1>Welcome to the Patient Journey Generator of TracEX</h1>
<p>Our innovative tool enables you to simulate a synthetic COVID-specific disease course. Before generating the journey, personal factors such as <span class="highlight">age</span>, <span class="highlight">sex</span>, and <span class="highlight">nationality</span> are randomized, allowing you to explore diverse scenarios and outcomes. Once the journey is generated, refine your analysis by extracting an event log. Customize your experience by applying filters to delve deeper into the simulated patient's progression.</p>
<p>Our innovative tool enables you to simulate a synthetic COVID-19 specific disease course. Before generating the journey, personal factors such as <span class="highlight">age</span>, <span class="highlight">sex</span>, and <span class="highlight">nationality</span> are randomized, allowing you to explore diverse scenarios and outcomes. Once the journey is generated, refine your analysis by extracting an event log. Customize your experience by applying filters to delve deeper into the simulated patient's progression.</p>
<div class="spinner-container" id="loading-container">
<span id="loading-spinner" class="loader not_visible"></span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h3>Patient Journey: {{ patient_journey_name }}</h3>

<form method="post" >
{% csrf_token %}
<button type="submit" class="function_button" id="progress_button">Start Comparing Against Ground Truth</button>
<button type="submit" class="function_button" id="progress_button" onclick="disableButton()">Start Comparing Against Ground Truth</button>
</form>
<script>
function disableButton() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body class="main_body">
<h1>Trace Comparison Results</h1>

<h2>Patient Journey: {{ patient_journey_name }}</h2>
<h3>Patient Journey: {{ patient_journey_name }}</h3>
<div class="dashboard">
<div class="row">
<div class="metric-tile">
Expand Down Expand Up @@ -53,11 +53,13 @@ <h3>Number of <br> Wrong Orders</h3>
</div>
<button id="togglePipelineTable" class="function_button">Show/Hide Extracted Trace from the Pipeline</button>
<div id="contentPipeline" style="display: none;">
<br>
<div>{{ pipeline_output|safe }}</div>
</div>

<button id="toggleGroundTruthTable" class="function_button">Show/Hide Ground Truth Trace</button>
<div id="contentGroundTruth" style="display: none;">
<br>
<div>{{ ground_truth_output|safe }}</div>
</div>

Expand Down
12 changes: 0 additions & 12 deletions tracex_project/tracex/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
"""
Provide the django app "tracex" for the project.

This is the main app for the project and contains the following modules:
logic -- Provide additional logic for the tracex app.
tests -- Provide tests for the tracex app.
asgi -- ASGI configuration for the tracex app.
forms -- Implementation of forms for the tracex app.
settings -- Define the settings for the Django project.
urls -- URL configuration for the tracex app.
views -- Implementation of views for the tracex app.
wsgi -- WSGI configuration for the tracex app.
"""
10 changes: 0 additions & 10 deletions tracex_project/tracex/logic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
"""
Provide additional logic for the tracex app.

This logic is additional to the django functionality and is reused in other parts of the project.
It does not export any modules or sub-packages.
Contained Modules:
constants -- Provide constants for the project.
logger -- Provide logging functionality for the project.
utils -- Provide various utility functions for the project.
"""

0 comments on commit 77a4ed9

Please sign in to comment.