Commit de43c96d authored by Zolnierczuk, Piotr's avatar Zolnierczuk, Piotr
Browse files

getting ready for nexus

parent 09b98bb7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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
+4 −1
Original line number Diff line number Diff line
@@ -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

+3 −2
Original line number Diff line number Diff line
@@ -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
Loading