Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Releases: BDNYC/astrodbkit

Astrodbkit v0.6.6

19 Jan 20:10
Compare
Choose a tag to compare

First release for Zenodo record.

Contains various small updates since v0.6.5. Largest update is addition of the astrocat module to work with Vizier catalogs.

Astrodbkit v0.6.5

01 Nov 17:41
Compare
Choose a tag to compare
Astrodbkit v0.6.5 Pre-release
Pre-release

Some additional functionality, including:

  • Ability to supply your own schema in database creation with create_database()
  • Ability to load an in-memory database from a dictionary of Astropy Tables
  • New IMAGE custom data type, along with methods like show_image() to preview them
  • The method add_data() can now directly accept Astropy Tables, in addition to files or lists of lists

Astrodbkit v0.6.4

19 Apr 23:42
Compare
Choose a tag to compare
Astrodbkit v0.6.4 Pre-release
Pre-release

A variety of small fixes

  • Database.search() method now has an option to do sql-type box searches rather than the true angular separation in the interest of speed. The default option is to use the true angular separation.
  • Added error handling in Database.query() to automatically set use_converters=False if it fails with True (the default). This can happen for complex queries.
  • When creating the database with the SQL file, only tables are used for populating the database rather than both tables and views
  • Any SQL triggers get deactivated when loading via the SQL file.
  • Changed Database.search() so that when providing coordinates the table you indicated gets returned (eg, search for coordinates on the spectra table -> get results of the spectra table)

Astrodbkit v0.6.3

03 Feb 19:34
Compare
Choose a tag to compare
Astrodbkit v0.6.3 Pre-release
Pre-release

Minor update to astrodbkit adding the get_bibtex() method as well as a number of minor fixes.

Astrodbkit v0.6.2

03 Nov 18:11
Compare
Choose a tag to compare
Astrodbkit v0.6.2 Pre-release
Pre-release

A variety of small bug fixes and doc string updates.

New feature added: add_changelog() method. This allows the user to easily add a new entry to the changelog to keep track of database changes.

Astrodbkit v0.6.1

13 Oct 20:08
Compare
Choose a tag to compare
Astrodbkit v0.6.1 Pre-release
Pre-release

Fixed a major bug when saving databases: special characters (accented latin, greek letters, etc) were being silently dropped when using save(). This would result in changes the contents of the database.
Version 0.6.1 fixes this bug by explicitly encoding each output file as utf-8.

Astrodbkit v0.6

13 Oct 17:38
Compare
Choose a tag to compare
Astrodbkit v0.6 Pre-release
Pre-release

A significant update on how the database is loaded and used in astrodbkit:

astrodb.Database() now takes either a .db or .sql file (assumes .db if the filename does not end in either). If an .sql file, the database is generating from ascii tables stored in the specified directory (default: tabledata/). This changes the workflow to allow version-controlling the individual ascii tables rather than the binary .db file. A variety of new methods exist to utilize this new workflow.

  • there is a new save() method to output the .sql file along with all the data in the database to the specified directory
  • there is a modified close() method that closes the connection and asks to save the database and delete the .db file

In addition, this release includes the following changes and bug fixes:

  • query() method now has a fmt='pandas' option to return the results in pandas DataFrame format
  • the new info() method displays basic information on the loaded database (ie, the tables present and the number of entries in each)
  • the new snapshot() method produces a snapshot of the database, useful for extracting published versions of the database
  • a new help() method provides a brief summary of how to use astrodb.Database
  • SQL TEXT fields are treated as numpy.dtype objects rather than strings to avoid truncation

Astrodbkit v0.5.2

31 Aug 19:59
Compare
Choose a tag to compare
Astrodbkit v0.5.2 Pre-release
Pre-release

A variety of updates and fixes to Astrodbkit, including:

  • Added references() method for reverse lookup
  • Fixes to how spectra are downloaded and read
  • Modified search() method to accept user-supplied search radius in degrees
  • Added pandas to the list of requirements

Version 0.5.1 was never released or uploaded to PyPI. Its changes were merged with 0.5.2

Astrodbkit v0.5

18 Aug 18:16
Compare
Choose a tag to compare
Astrodbkit v0.5 Pre-release
Pre-release

Major change:

  • Python 3 support added to astrodbkit. Currently tested for Python 3.4 and 3.5

Bug fixes:

  • Better structuring of clean_up() method
  • Fixed error when spectra filenames do not end in .fits or .txt