Giter Club home page Giter Club logo

ztf_sim's People

Contributors

danny-kh avatar ebellm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ztf_sim's Issues

setup.py does not include package data

After doing a fresh install following the instructions in the readme, I get:

(ztf_sim_test) dhcp-194-201:~ danny$ run_ztf_sim --help
WARNING: AstropyDeprecationWarning: astropy.extern.six will be removed in 4.0, use the six module directly if it is still needed [astropy.extern.six]
/anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/sklearn/externals/joblib/__init__.py:15: DeprecationWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
  warnings.warn(msg, category=DeprecationWarning)
Traceback (most recent call last):
  File "/anaconda2/envs/ztf_sim_test/bin/run_ztf_sim", line 6, in <module>
    from ztf_sim.simulate import simulate
  File "/anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/ztf_sim/__init__.py", line 5, in <module>
    from .Scheduler import *
  File "/anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/ztf_sim/Scheduler.py", line 6, in <module>
    from .QueueManager import ListQueueManager, GreedyQueueManager, GurobiQueueManager
  File "/anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/ztf_sim/QueueManager.py", line 14, in <module>
    from .magnitudes import limiting_mag
  File "/anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/ztf_sim/magnitudes.py", line 19, in <module>
    R20_interp_alt = {1: interp_R20_airmass(filter_id=1),
  File "/anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/ztf_sim/magnitudes.py", line 14, in interp_R20_airmass
    data = np.loadtxt(R20_file)
  File "/anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/numpy/lib/npyio.py", line 962, in loadtxt
    fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
  File "/anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/numpy/lib/_datasource.py", line 266, in open
    return ds.open(path, mode, encoding=encoding, newline=newline)
  File "/anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/numpy/lib/_datasource.py", line 624, in open
    raise IOError("%s not found." % path)
OSError: /anaconda2/envs/ztf_sim_test/lib/python3.7/site-packages/ztf_sim/../data/R20_absorbed_ZTFg.txt not found.
(ztf_sim_test) dhcp-194-201:~ danny$

example scheduler configuration files are missing

--2019-06-12 10:46:23--  https://raw.githubusercontent.com/ZwickyTransientFacility/ztf_sim/master/sims/example_scheduler_config.json
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.196.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.196.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-06-12 10:46:23 ERROR 404: Not Found.

(ztf_sim_test) dhcp-194-201:ztf_sim danny$ wget https://raw.githubusercontent.com/ZwickyTransientFacility/ztf_sim/master/sims/survey_180501.json
--2019-06-12 10:46:23--  https://raw.githubusercontent.com/ZwickyTransientFacility/ztf_sim/master/sims/survey_180501.json
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.196.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.196.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-06-12 10:46:23 ERROR 404: Not Found.

(ztf_sim_test) dhcp-194-201:ztf_sim danny$ wget https://raw.githubusercontent.com/ZwickyTransientFacility/ztf_sim/master/sims/reference_building.json
--2019-06-12 10:46:26--  https://raw.githubusercontent.com/ZwickyTransientFacility/ztf_sim/master/sims/reference_building.json
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.196.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.196.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-06-12 10:46:26 ERROR 404: Not Found.```

Denpendencies version missed

Hi, I am reading your fantastic paper The Zwicky Transient Facility: Surveys and Scheduler and trying to replicate the experiment.

The sky model in format pkl is XGBoost 's production, and it forces a version assertion. Could you provide the specific version of XGBoost and other dependencies (like numpy, sklearn, and so on) for replication? With the development of all those packages, their api and function turns different.

Thank you.๐Ÿ˜†


PS: This is the error message I met.

 If you are loading a serialized model (like pickle in Python) generated by older
  XGBoost, please export the model by calling `Booster.save_model` from that version
  first, then load it back in current version.  There's a simple script for helping
  the process. See:

    https://xgboost.readthedocs.io/en/latest/tutorials/saving_model.html

  for reference to the script, and more details about differences between saving model and
  serializing.

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.