-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from dtxe/main
lesson 5 and assignment template
- Loading branch information
Showing
6 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from typing import Any, Optional | ||
import matplotlib.pyplot as plt | ||
import yaml | ||
import requests | ||
|
||
|
||
class Analysis(): | ||
|
||
def __init__(self, analysis_config: str) -> None: | ||
CONFIG_PATHS = ['configs/system_config.yml', 'configs/user_config.yml'] | ||
|
||
# add the analysis config to the list of paths to load | ||
paths = CONFIG_PATHS + [analysis_config] | ||
|
||
# initialize empty dictionary to hold the configuration | ||
config = {} | ||
|
||
# load each config file and update the config dictionary | ||
for path in paths: | ||
with open(path, 'r') as f: | ||
this_config = yaml.safe_load(f) | ||
config.update(this_config) | ||
|
||
self.config = config | ||
|
||
def load_data(self) -> None: | ||
print(self.config['figure_title']) | ||
|
||
def compute_analysis(self) -> Any: | ||
pass | ||
|
||
def plot_data(self, save_path: Optional[str] = None) -> plt.Figure: | ||
pass | ||
|
||
def notify_done(self, message: str) -> None: | ||
pass | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "" | ||
authors = [ | ||
{name = "", email = ""}, | ||
] | ||
description = "" | ||
version = "0.1.0" | ||
dependencies = [""] | ||
requires-python = ">=3.11.0" | ||
readme = "README.md" | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
] | ||
|
Empty file.
Empty file.
Binary file modified
BIN
+11.2 KB
(100%)
.../BRS5 - Python documentation and packages/BRS5 - Modules, documentation, and packages.pdf
Binary file not shown.