You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: No password was found in the keychain for the provided username. [astroquery.cosmosim.core]
50
+
uname, enter your CosmoSim password:
51
+
52
+
Authenticating uname on www.cosmosim.org...
53
+
Authentication successful!
54
+
55
+
Logging out is as simple as:
56
+
57
+
>>> CS.logout(deletepw=True)
58
+
Removed password for uname in the keychain.
59
+
60
+
The deletepw option will undo the storage of any password in the
61
+
keychain. Checking whether you are successfully logged in (or who is
62
+
currently logged in):
63
+
64
+
>>> CS.check_login_status()
65
+
Status: You are logged in as uname.
66
+
67
+
Below is an example of running an SQL query (BDMV mass function of the
68
+
MDR1 cosmological simulation at a redshift of z=0):
69
+
45
70
>>> sql_query ="SELECT 0.25*(0.5+FLOOR(LOG10(mass)/0.25)) AS log_mass, COUNT(*) AS num FROM MDR1.FOF WHERE snapnum=85 GROUP BY FLOOR(LOG10(mass)/0.25) ORDER BY log_mass"
46
71
>>> CS.run_sql_query(query_string=sql_query)
47
72
Job created: 359748449665484 #jobid; note: is unique to each and
@@ -77,10 +102,10 @@ jobs.
77
102
{'359748449665484': 'COMPLETED'}
78
103
{'359748449682647': 'ABORTED'}
79
104
80
-
Additionally, 'delete_all_jobs' accepts both phase and/or tablename
81
-
(via a regular expression) as criteria for deletion of all available
82
-
CosmoSim jobs. But be careful: Leaving both arguments blank will
83
-
delete ALL jobs!
105
+
Additionally, 'check_all_jobs' (and 'delete_all_jobs') accepts both
106
+
phase and/or tablename (via a regular expression) as criteria for
107
+
deletion of all available CosmoSim jobs. But be careful: Leaving both
108
+
arguments blank will delete ALL jobs!
84
109
85
110
.. code-block:: python
86
111
@@ -120,6 +145,22 @@ Deleting all jobs, regardless of tablename, and job phase:
120
145
>>>CS.check_all_jobs()
121
146
{}
122
147
148
+
In addition to the phase and regex arguments for 'check_all_jobs',
149
+
selected queries can be sorted using two properties:
0 commit comments