Skip to content

Commit 3bb1129

Browse files
committed
Don't generate the config file any longer, just keep it in the repo and
copy it over.
1 parent 61c1390 commit 3bb1129

File tree

6 files changed

+250
-273
lines changed

6 files changed

+250
-273
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ __pycache__
1414
MANIFEST
1515
astropy/version.py
1616
astropy/cython_version.py
17-
astropy/astropy.cfg
1817
astropy/wcs/include/wcsconfig.h
1918

2019
# Sphinx

astropy/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ def _rollback_import(message):
217217
raise
218218

219219
# add these here so we only need to cleanup the namespace at the end
220-
config_dir = None
221220
config_dir = os.path.dirname(__file__)
222221

223222
try:

astropy/astropy.cfg

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
## Use Unicode characters when outputting values, and writing widgets to the
2+
## console.
3+
#unicode_output = False
4+
5+
[utils.console]
6+
7+
## When True, use ANSI color escape sequences when writing to the console.
8+
# use_color = True
9+
10+
[logger]
11+
12+
## Threshold for the logging messages. Logging messages that are less severe
13+
## than this level will be ignored. The levels are 'DEBUG', 'INFO', 'WARNING',
14+
## 'ERROR'
15+
# log_level = INFO
16+
17+
## Whether to use color for the level names
18+
# use_color = True
19+
20+
## Whether to log warnings.warn calls
21+
# log_warnings = True
22+
23+
## Whether to log exceptions before raising them
24+
# log_exceptions = False
25+
26+
## Whether to always log messages to a log file
27+
# log_to_file = False
28+
29+
## The file to log messages to. When '', it defaults to a file 'astropy.log' in
30+
## the astropy config directory.
31+
# log_file_path = ""
32+
33+
## Threshold for logging messages to log_file_path
34+
# log_file_level = INFO
35+
36+
## Format for log file entries
37+
# log_file_format = "%(asctime)r, %(origin)r, %(levelname)r, %(message)r"
38+
39+
[coordinates.name_resolve]
40+
41+
## The URL to Sesame's web-queryable database.
42+
# sesame_url = http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame/, http://vizier.cfa.harvard.edu/viz-bin/nph-sesame/
43+
44+
## This specifies the default database that SESAME will query when using the
45+
## name resolve mechanism in the coordinates subpackage. Default is to search
46+
## all databases, but this can be 'all', 'simbad', 'ned', or 'vizier'.
47+
## Options: all, simbad, ned, vizier
48+
# sesame_database = all
49+
50+
## This is the maximum time to wait for a response from a name resolve query to
51+
## SESAME in seconds.
52+
# name_resolve_timeout = 5
53+
54+
[table.pprint]
55+
56+
## Maximum number of lines for the pretty-printer to use if it cannot determine
57+
## the terminal size. Negative numbers mean no limit.
58+
# max_lines = 25
59+
60+
## Maximum number of characters for the pretty-printer to use per line if it
61+
## cannot determine the terminal size. Negative numbers mean no limit.
62+
# max_width = 80
63+
64+
[table.column]
65+
66+
## The template that determines the name of a column if it cannot be
67+
## determined. Uses new-style (format method) string formatting
68+
# auto_colname = col{0}
69+
70+
[utils.data]
71+
72+
## URL for astropy remote data site.
73+
# dataurl = http://data.astropy.org/
74+
75+
## Time to wait for remote data query (in seconds).
76+
# remote_timeout = 3.0
77+
78+
## Block size for computing MD5 file hashes.
79+
# hash_block_size = 65536
80+
81+
## Number of bytes of remote data to download per step.
82+
# download_block_size = 65536
83+
84+
## Number of times to try to get the lock while accessing the data cache before
85+
## giving up.
86+
# download_cache_lock_attempts = 5
87+
88+
## If True, temporary download files created when the cache is inacessible will
89+
## be deleted at the end of the python session.
90+
# delete_temporary_downloads_at_exit = True
91+
92+
[io.fits]
93+
94+
## If True, enable support for record-valued keywords as described by FITS WCS
95+
## Paper IV. Otherwise they are treated as normal keywords.
96+
# enabled_record_valued_keyword_cards = True
97+
98+
## If True, extension names (i.e. the EXTNAME keyword) should be treated as
99+
## case-sensitive.
100+
# extension_name_case_sensitive = False
101+
102+
## If True, automatically remove trailing whitespace for string values in
103+
## headers. Otherwise the values are returned verbatim, with all whitespace
104+
## intact.
105+
# strip_header_whitespace = True
106+
107+
## If True, use memory-mapped file access to read/write the data in FITS files.
108+
## This generally provides better performance, especially for large files, but
109+
## may affect performance in I/O-heavy applications.
110+
# use_memmap = True
111+
112+
[io.votable.table]
113+
114+
## When True, treat fixable violations of the VOTable spec as exceptions.
115+
# pedantic = False
116+
117+
[cosmology.core]
118+
119+
## The default cosmology to use. Note this is only read on import, so changing
120+
## this value at runtime has no effect.
121+
# default_cosmology = no_default
122+
123+
[nddata.nddata]
124+
125+
## Whether to issue a warning if NDData arithmetic is performed with
126+
## uncertainties and the uncertainties do not support the propagation of
127+
## correlated uncertainties.
128+
# warn_unsupported_correlated = True
129+
130+
[vo.client.vos_catalog]
131+
132+
## URL where VO Service database file is stored.
133+
# vos_baseurl = http://stsdas.stsci.edu/astrolib/vo_databases/
134+
135+
[vo.client.conesearch]
136+
137+
## Conesearch database name.
138+
# conesearch_dbname = conesearch_good
139+
140+
[vo.samp.utils]
141+
142+
## Whether to allow astropy.vo.samp to use the internet, if available
143+
# use_internet = True
144+
145+
[vo.validator.validate]
146+
147+
## Cone Search services master list for validation.
148+
# cs_mstr_list = http://vao.stsci.edu/directory/NVORegInt.asmx/VOTCapabilityPredOpt?predicate=1%3D1&capability=conesearch&VOTStyleOption=2
149+
150+
## Only check these Cone Search URLs.
151+
# cs_urls = http://archive.noao.edu/nvo/usno.php?cat=a&, http://gsss.stsci.edu/webservices/vo/ConeSearch.aspx?CAT=GSC23&, http://irsa.ipac.caltech.edu/cgi-bin/Oasis/CatSearch/nph-catsearch?CAT=fp_psc&, http://vizier.u-strasbg.fr/viz-bin/votable/-A?-source=I/220/out&, http://vizier.u-strasbg.fr/viz-bin/votable/-A?-source=I/243/out&, http://vizier.u-strasbg.fr/viz-bin/votable/-A?-source=I/252/out&, http://vizier.u-strasbg.fr/viz-bin/votable/-A?-source=I/254/out&, http://vizier.u-strasbg.fr/viz-bin/votable/-A?-source=I/255/out&, http://vizier.u-strasbg.fr/viz-bin/votable/-A?-source=I/284/out&, http://vizier.u-strasbg.fr/viz-bin/votable/-A?-source=II/246/out&, http://vo.astronet.ru/sai_cas/conesearch?cat=sdssdr7&tab=field&, http://vo.astronet.ru/sai_cas/conesearch?cat=sdssdr7&tab=photoobjall&, http://vo.astronet.ru/sai_cas/conesearch?cat=sdssdr7&tab=phototag&, http://vo.astronet.ru/sai_cas/conesearch?cat=sdssdr7&tab=specobjall&, http://vo.astronet.ru/sai_cas/conesearch?cat=sdssdr7&tab=specphotoall&, http://vo.astronet.ru/sai_cas/conesearch?cat=sdssdr7&tab=sppparams&, http://vo.astronet.ru/sai_cas/conesearch?cat=twomass&tab=psc&, http://vo.astronet.ru/sai_cas/conesearch?cat=twomass&tab=xsc&, http://vo.astronet.ru/sai_cas/conesearch?cat=usnoa2&tab=main&, http://vo.astronet.ru/sai_cas/conesearch?cat=usnob1&tab=main&, http://wfaudata.roe.ac.uk/sdssdr7-dsa/DirectCone?DSACAT=SDSS_DR7&DSATAB=Galaxy&, http://wfaudata.roe.ac.uk/sdssdr7-dsa/DirectCone?DSACAT=SDSS_DR7&DSATAB=PhotoObj&, http://wfaudata.roe.ac.uk/sdssdr7-dsa/DirectCone?DSACAT=SDSS_DR7&DSATAB=PhotoObjAll&, http://wfaudata.roe.ac.uk/sdssdr7-dsa/DirectCone?DSACAT=SDSS_DR7&DSATAB=Star&, http://wfaudata.roe.ac.uk/sdssdr8-dsa/DirectCone?DSACAT=SDSS_DR8&DSATAB=PhotoObjAll&, http://wfaudata.roe.ac.uk/sdssdr8-dsa/DirectCone?DSACAT=SDSS_DR8&DSATAB=SpecObjAll&, http://wfaudata.roe.ac.uk/twomass-dsa/DirectCone?DSACAT=TWOMASS&DSATAB=twomass_psc&, http://wfaudata.roe.ac.uk/twomass-dsa/DirectCone?DSACAT=TWOMASS&DSATAB=twomass_xsc&, http://www.nofs.navy.mil/cgi-bin/vo_cone.cgi?CAT=USNO-A2&, http://www.nofs.navy.mil/cgi-bin/vo_cone.cgi?CAT=USNO-B1&
152+
153+
## VO Table warning codes that are considered non-critical
154+
# noncrit_warnings = W03, W06, W07, W09, W10, W15, W17, W20, W21, W22, W27, W28, W29, W41, W42, W48, W50

0 commit comments

Comments
 (0)