Loading .pylint.rc +3 −3 Original line number Diff line number Diff line Loading @@ -146,11 +146,11 @@ confidence=HIGH, # --disable=W". disable=invalid-name, fixme, too-many-statements, too-many-locals, consider-using-f-string, use-dict-literal use-dict-literal, # too-many-statements, # too-many-locals, # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option # multiple time (only on the command line, not in the configuration file where Loading pysen/echo/fit.py +4 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,10 @@ def linear_fit(x, y, yerr, chionly=False): slope = (n *sumyx - sumy*sumx ) / denom offset = -(sumx*sumyx - sumy*sumx2) / denom chi = npsum(((y-offset-slope*x)/yerr)**2) yerr = np.abs(yerr) chi = y-offset-slope*x chi = np.where(yerr, chi/yerr, chi) chi = npsum(chi**2) if chionly: return chi Loading pysen/inout/__init__.py +3 −2 Original line number Diff line number Diff line Loading @@ -5,5 +5,6 @@ from .hdf import HdfConverter, convert_to_hdf # NOQA from .reader import ( read_echo, read_magnetic, read_xyz, # NOQA read_detimage, read_datfile, read_diffrun, # NOQA read_datreat , read_transmission ) # NOQA # from .writer import write_csv, generate_echo # NOQA # from .history import extract_data, list_variables, parse_date # NOQA #from .wr # from .legacy_writer import write_csv, generate_echo # NOQA # from .legacy_history import extract_data, list_variables, parse_date # NOQA pysen/inout/history.py→pysen/inout/legacy_history.py +0 −0 File moved. View file pysen/inout/writer.py→pysen/inout/legacy_writer.py +0 −0 File moved. View file Loading
.pylint.rc +3 −3 Original line number Diff line number Diff line Loading @@ -146,11 +146,11 @@ confidence=HIGH, # --disable=W". disable=invalid-name, fixme, too-many-statements, too-many-locals, consider-using-f-string, use-dict-literal use-dict-literal, # too-many-statements, # too-many-locals, # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option # multiple time (only on the command line, not in the configuration file where Loading
pysen/echo/fit.py +4 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,10 @@ def linear_fit(x, y, yerr, chionly=False): slope = (n *sumyx - sumy*sumx ) / denom offset = -(sumx*sumyx - sumy*sumx2) / denom chi = npsum(((y-offset-slope*x)/yerr)**2) yerr = np.abs(yerr) chi = y-offset-slope*x chi = np.where(yerr, chi/yerr, chi) chi = npsum(chi**2) if chionly: return chi Loading
pysen/inout/__init__.py +3 −2 Original line number Diff line number Diff line Loading @@ -5,5 +5,6 @@ from .hdf import HdfConverter, convert_to_hdf # NOQA from .reader import ( read_echo, read_magnetic, read_xyz, # NOQA read_detimage, read_datfile, read_diffrun, # NOQA read_datreat , read_transmission ) # NOQA # from .writer import write_csv, generate_echo # NOQA # from .history import extract_data, list_variables, parse_date # NOQA #from .wr # from .legacy_writer import write_csv, generate_echo # NOQA # from .legacy_history import extract_data, list_variables, parse_date # NOQA