Refactoring some files making defs more consistent, i.e. adding all visualising as another module in defs
This commit is contained in:
1 parent
f3f3924a42
commit
7851a353bb
9 files changed
+4
-8
No files matched your search
@@ -27,10 +27,10 @@ You are currently reading `README.md`, where the structure of this oroject is ex
|
||||
1. `.git` contains all files related to `git`. These files are usually not interesting, unless you need to go back to old commits or want to know more details. Best leave this alone. For a detailed description of how `git` (and with it the `.git` directory) works, see [`git` description](##Git).
|
||||
2. `.vscode` contains all files relevant for environment setup to run this project in [Visual Studio Code](https://code.visualstudio.com/). These files are:
|
||||
1. `settings.json`: the setup file to set up VS Code in the desired configuration. Feel free to change these as you like. For example, the setting `"python.defaultInterpreterPath": "C:/Users/tschan_d/AppData/Local/miniforge3/envs/MA/python"` needs to be changed to point to the path of the Python interpreter you select.
|
||||
2. `launch.json`: the launch configuration file for the project, in which it is specified how VSCode should behave when you launch a job: that is, when you want to run a file or debug it. Again, feel free to customise these settings.
|
||||
Important here is that
|
||||
2. `launch.json`: the launch configuration file for the project, in which it is specified how VSCode should behave when you launch a job: that is, when you want to run a file or debug it. Again, feel free to customise these settings.
|
||||
3. `defs` contains source code for data analysis:
|
||||
1. `__init__.py` is a file to structure the project like a package. This file is empty, but it is needed such that relative imports work properly.
|
||||
2. `defs.py` is the file defining classed and methods used to analyse data.
|
||||
4. `vis` contains source code for data visualisation.
|
||||
|
||||
# Coding help
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
||||
#%%
|
||||
from defs.defs import OFRAnalyser
|
||||
from defs.computing import OFRAnalyser
|
||||
import numpy as np
|
||||
|
||||
#%%
|
||||
@@ -12,5 +12,5 @@ analyser = OFRAnalyser(sourcefile="Z:/People/David_Tschan/data/OFR_SMPS/2026/pro
|
||||
analyser.AggregateSamples(samples=[33])
|
||||
|
||||
#%%
|
||||
print(analyser.total_surface)
|
||||
print(analyser.total_count)
|
||||
# %%
|
||||
Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Whitespace-only changes.
@@ -1,4 +0,0 @@
|
||||
class HelloWorld:
|
||||
|
||||
def __init__(self, word):
|
||||
self.word = word
|
||||
Reference in new issue
Block a user