Coder Social home page Coder Social logo

griffin-h / lightcurve_fitting Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 7.0 7.38 MB

Tools to fit analytical models to multiband light curves of astronomical transients

License: GNU General Public License v3.0

Python 96.83% Jupyter Notebook 3.17%
astrophysics

lightcurve_fitting's People

Contributors

gmzsebastian avatar griffin-h avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

lightcurve_fitting's Issues

Issue installing package via git

Encountered the following error when installing under a virtual env, using Python 3.10, and using the cmd: pip install git+https://github.com/griffin-h/lightcurve_fitting.git

  Building wheel for extinction (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for extinction (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [228 lines of output]
      running bdist_wheel
      running build
      running build_ext
      /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/Cython/Compiler/Main.py:384: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-install-n26xpxkw/extinction_0fabe79fbaff4e63bb200deb0968ef3e/extinction.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      warning: extinction.pyx:289:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:290:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:291:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:292:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:293:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:294:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:295:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:492:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:493:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:494:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:495:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:496:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:497:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:498:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:499:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:500:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      warning: extinction.pyx:501:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
      Compiling extinction.pyx because it changed.
      [1/1] Cythonizing extinction.pyx
      building 'extinction' extension
      creating build
      creating build/temp.macosx-10.9-universal2-cpython-310
      creating build/temp.macosx-10.9-universal2-cpython-310/extern
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include -Iextern -I/Users/cstarzero/PycharmProjects/LightCurveFitting/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c extern/bs.c -o build/temp.macosx-10.9-universal2-cpython-310/extern/bs.o -std=c99
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include -Iextern -I/Users/cstarzero/PycharmProjects/LightCurveFitting/venv/include -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c extinction.c -o build/temp.macosx-10.9-universal2-cpython-310/extinction.o -std=c99
      In file included from extinction.c:1183:
      In file included from /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:4:
      In file included from /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
      In file included from /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1969:
      /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
      #warning "Using deprecated NumPy API, disable it with " \
       ^
      extinction.c:4817:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:6312:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:6434:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:6888:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:7044:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:7346:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:7506:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11250:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11364:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11478:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11610:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11741:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11863:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:14689:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:14811:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:18070:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:20697:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:21391:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:22136:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:22437:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:22927:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:23050:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:23232:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:23711:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:24485:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:24952:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:25197:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:29410:76: warning: code will never be executed [-Wunreachable-code]
              if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) < 0) goto bad;
                                                                                 ^~~~~~~~
      extinction.c:29410:73: note: silence by adding parentheses to mark code as explicitly dead
              if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) < 0) goto bad;
                                                                              ^
                                                                              /* DISABLES CODE */ ( )
      29 warnings generated.
      In file included from extinction.c:1183:
      In file included from /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:4:
      In file included from /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
      In file included from /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1969:
      /private/var/folders/jz/ygpfpq953fj96p5kvm9_q3x00000gn/T/pip-build-env-xbggbtl_/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
      #warning "Using deprecated NumPy API, disable it with " \
       ^
      extinction.c:4817:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:6312:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:6434:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:6888:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:7044:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:7346:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:7506:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11250:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11364:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11478:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11610:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11741:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:11863:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:14689:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:14811:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:18070:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:20697:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:21391:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:22136:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:22437:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:22927:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:23050:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:23232:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:23711:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:24485:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:24952:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:25197:3: warning: code will never be executed [-Wunreachable-code]
        goto __pyx_L3_error;
        ^~~~~~~~~~~~~~~~~~~
      extinction.c:29410:76: warning: code will never be executed [-Wunreachable-code]
              if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) < 0) goto bad;
                                                                                 ^~~~~~~~
      extinction.c:29410:73: note: silence by adding parentheses to mark code as explicitly dead
              if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) < 0) goto bad;
                                                                              ^
                                                                              /* DISABLES CODE */ ( )
      29 warnings generated.
      creating build/lib.macosx-10.9-universal2-cpython-310
      clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g build/temp.macosx-10.9-universal2-cpython-310/extern/bs.o build/temp.macosx-10.9-universal2-cpython-310/extinction.o -o build/lib.macosx-10.9-universal2-cpython-310/extinction.cpython-310-darwin.so
      ld: warning: ignoring file /usr/local/Cellar/llvm@9/9.0.1_4/lib/clang/9.0.1/lib/darwin/libclang_rt.osx.a, missing required architecture arm64 in file /usr/local/Cellar/llvm@9/9.0.1_4/lib/clang/9.0.1/lib/darwin/libclang_rt.osx.a (2 slices)
      ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib/libSystem.tbd' for architecture arm64
      clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
      error: command '/usr/local/opt/llvm@9/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for extinction
Successfully built lightcurve-fitting
Failed to build extinction
ERROR: Could not build wheels for extinction, which is required to install pyproject.toml-based projects

create_wiserep_tsv crashes if no time found

Currently, create_wiserep_tsv will completely crash if no time is found in the header or filename and will not write a tsv file. It would be wonderful if it asked for the time or if it skipped files that didn't meet all the requirements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.