Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Troubled Cell Detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Christine Kühle
Troubled Cell Detection
Commits
141632da
Commit
141632da
authored
3 years ago
by
Laura Christine Kühle
Browse files
Options
Downloads
Patches
Plain Diff
Removed completed TODOs.
parent
7deb16ed
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ANN_Training.py
+0
-9
0 additions, 9 deletions
ANN_Training.py
DG_Approximation.py
+1
-4
1 addition, 4 deletions
DG_Approximation.py
with
1 addition
and
13 deletions
ANN_Training.py
+
0
−
9
View file @
141632da
...
@@ -6,15 +6,6 @@ Code-Style: E226, W503
...
@@ -6,15 +6,6 @@ Code-Style: E226, W503
Docstring-Style: D200, D400
Docstring-Style: D200, D400
TODO: Add README for ANN training
TODO: Add README for ANN training
TODO: Fix random seed -> Done
TODO: Improve file structure and naming (e.g. use
'
.
'
instead of
'
__
'
) -> Done
TODO: Write-protect all data and models -> Done
TODO: Put legend outside plot (bbox_to_anchor) -> Done
TODO: Improve legend layout -> Done
TODO: Put plotting into separate function -> Done
TODO: Reduce number of testing epochs to 50 -> Done
TODO: Rename
'
data_directory
'
to
'
data_dir
'
-> Done
TODO: Add comments -> Done
"""
"""
import
numpy
as
np
import
numpy
as
np
...
...
This diff is collapsed.
Click to expand it.
DG_Approximation.py
+
1
−
4
View file @
141632da
...
@@ -3,8 +3,6 @@
...
@@ -3,8 +3,6 @@
@author: Laura C. Kühle
@author: Laura C. Kühle
Urgent:
Urgent:
TODO: Add way of saving data (np.savez(
'
data/
'
+ name,
coefficients=projection, troubled_cells=troubled_cells)) -> Done
TODO: Move plotting into separate function
TODO: Move plotting into separate function
TODO: Adapt TCD from Soraya
TODO: Adapt TCD from Soraya
(Dropbox->...->TEST_troubled-cell-detector->Troubled_Cell_Detector)
(Dropbox->...->TEST_troubled-cell-detector->Troubled_Cell_Detector)
...
@@ -17,7 +15,6 @@ TODO: Adjust code to allow classes for all equations
...
@@ -17,7 +15,6 @@ TODO: Adjust code to allow classes for all equations
(Burger, linear advection, 1D Euler)
(Burger, linear advection, 1D Euler)
Currently not critical:
Currently not critical:
TODO: Remove object inheritance from classes -> Done
TODO: Replace loops with list comprehension if feasible
TODO: Replace loops with list comprehension if feasible
TODO: Check whether
'
projection
'
is always a np.array()
TODO: Check whether
'
projection
'
is always a np.array()
TODO: Check whether all instance variables are sensible
TODO: Check whether all instance variables are sensible
...
@@ -375,7 +372,7 @@ class DGScheme:
...
@@ -375,7 +372,7 @@ class DGScheme:
return
np
.
transpose
(
np
.
array
(
output_matrix
))
return
np
.
transpose
(
np
.
array
(
output_matrix
))
def
build_training_data
(
self
,
adjustment
,
stencil_length
,
def
build_training_data
(
self
,
adjustment
,
stencil_length
,
initial_condition
=
None
):
add_reconstructions
,
initial_condition
=
None
):
"""
Builds training data set.
"""
Builds training data set.
Initializes projection and calculates cell averages and
Initializes projection and calculates cell averages and
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment