zwickytransientfacility / ztf_sim Goto Github PK
View Code? Open in Web Editor NEW:telescope: Zwicky Transient Facility survey scheduler
License: BSD 3-Clause "New" or "Revised" License
:telescope: Zwicky Transient Facility survey scheduler
License: BSD 3-Clause "New" or "Revised" License
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$
--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.```
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.