Skip to content

Commit

Permalink
chore: style and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
MyPyDavid committed Nov 25, 2023
1 parent 744082f commit 08114f2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 147 deletions.
4 changes: 1 addition & 3 deletions src/raman_fitting/indexing/validators.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from dataclasses import dataclass
import re

import pandas as pd
import numpy as np
Expand All @@ -24,9 +23,8 @@ def validate_len(self, spectrum_data: pd.DataFrame):
data_len = len(spectrum_data)
return np.isclose(data_len, self.len, rtol=0.1)

def validate_spectrum(self, spectrum_data: pd.DataFrame):
def validate(self, spectrum_data: pd.DataFrame):
ret = []
for _func in [self.validate_min, self.validate_max, self.validate_len]:
ret.append(_func(spectrum_data))
return all(ret)

140 changes: 0 additions & 140 deletions src/raman_fitting/utils/coordinators.py

This file was deleted.

4 changes: 0 additions & 4 deletions todos.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
# IDEA change version definition

# IDEA list:
# added setup.cfg
# added unittests
# added README.md
# add project.toml only for
# improved logger, each module needs a getlogger(name)
# IDEA future daemonize the fitting process for using the package and dropping files in the datafiles folder
# IDEA add docs with Sphinx, readthedocs
Expand Down

0 comments on commit 08114f2

Please sign in to comment.