LSSTDESC / Monitor

Extract light curves for time-variable cosmological objects
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Update setup_jupyter-dev.md #73

Closed jbkalmbach closed 7 years ago

jbkalmbach commented 7 years ago

Added introduction to jupyter-dev instructions to motivate their use.

jbkalmbach commented 7 years ago

Hi @drphilmarshall, if you have some time please take a look at my updated instructions for jupyter-dev and let me know what else you'd like to see.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 31.089% when pulling 43dc0f046fc975693c0027996610cc63bbfe6b82 on issue/72/add-intro-to-jupyter-dev into a2147916997c6a400004aa528c47b04f577e49a0 on master.

danielsf commented 7 years ago

Cell 7 of light_curve_example.ipynb fails with


RuntimeErrorTraceback (most recent call last)
<ipython-input-7-d386c5b8a664> in <module>()
      1 obj_id = 38526
----> 2 lc.build_lightcurve_from_db(objid = obj_id)

/global/u1/d/danielsf/monitor/python/desc/monitor/monitor.pyc in build_lightcurve_from_db(self, objid, ra_dec, tol, database, host, port, driver)
    132                                  'ra,dec location.'))
    133 
--> 134         dbConn_lc = dbi(database=database, host=host, port=port, driver=driver)
    135 
    136         if objid is not None:

/global/u1/d/danielsf/monitor/python/desc/monitor/dbConnection.pyc in __init__(self, database, host, port, driver)
     10 
     11         self._dbo = DBObject(database=database, host=host, port=port,
---> 12                              driver=driver)
     13 
     14     def forcedSourceFromId(self, objectId):

/global/common/cori/contrib/lsst/lsstDM/v12_1/Linux64/sims_catalogs/master-g89e82bbb01+1/python/lsst/sims/catalogs/db/dbConnection.pyc in __init__(self, database, driver, host, port, verbose, connection)
    272 
    273             self.connection = DBConnection(database=self.database, driver=self.driver, host=self.host,
--> 274                                            port=self.port, verbose=self.verbose)
    275         else:
    276             self.connection = connection

/global/common/cori/contrib/lsst/lsstDM/v12_1/Linux64/sims_catalogs/master-g89e82bbb01+1/python/lsst/sims/catalogs/db/dbConnection.pyc in __init__(self, database, driver, host, port, verbose)
    111 
    112         self._validate_conn_params()
--> 113         self._connect_to_engine()
    114 
    115 

/global/common/cori/contrib/lsst/lsstDM/v12_1/Linux64/sims_catalogs/master-g89e82bbb01+1/python/lsst/sims/catalogs/db/dbConnection.pyc in _connect_to_engine(self)
    119         if self._host:
    120             try:
--> 121                 authDict = {'username': DbAuth.username(self._host, str(self._port)),
    122                             'password': DbAuth.password(self._host, str(self._port))}
    123             except:

/global/common/cori/contrib/lsst/lsstDM/v12_1/Linux64/daf_persistence/12.1/python/lsst/daf/persistence/persistenceLib.pyc in username(host, port)
   1194     def username(host, port):
   1195         """username(std::string const & host, std::string const & port) -> std::string"""
-> 1196         return _persistenceLib.DbAuth_username(host, port)
   1197 
   1198     username = staticmethod(username)

RuntimeError: 
  File "src/DbAuth.cc", line 112, in std::pair<std::basic_string<char>, std::basic_string<char> > search(const string&, const string&)
    No credentials found for host/port: 127.0.0.1:3307 {0}
lsst::pex::exceptions::RuntimeError: 'No credentials found for host/port: 127.0.0.1:3307'
danielsf commented 7 years ago

Never mind. User error. This looks good.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 31.089% when pulling a11a5d9dff5dc7df55f04f04257bc9040dbc264c on issue/72/add-intro-to-jupyter-dev into a2147916997c6a400004aa528c47b04f577e49a0 on master.