Skip to main content

astropy@GSoC Blog Post #5, Week 6&7

Hi,

How are you?

My dear mentors and I have decided to have the MRT (Machine Readable Table) format writing first. The same CDS code as been used now will be used, just the template of the written table will be in the MRT format.

Points to be noted regarding this and the immediate things that have been and will done are as follows:

  • Leave out writing all the optional CDS ReadMe fields as of now. These can be dealt with individual PRs later.
  • Some tests fail because start_line = None doesn't work. It has been introduced once again within CdsData.write function in addition to been defined in the main Cds class. The test failure occurs because CdsData now inherits from FixedWidthData which itself inherits basic.BasicReader instead of BaseReader. I should make sure that all tests pass properly.
  • Have a template for MRT tables and write them first. Title, Authors, Date, Caption and Notes sections, i.e. all sections except the Byte-By-Byte and the Data itself, will be left blank in the template, with warning for the user to put them in manually afterwards.
  • Documentation for the CDS/MRT format writer.
  • At present issue a warning note for tables with two or more mix-in columns (SkyCoord cols primarily). If ways to correctly work out such situations is thought of, add that feature in a separate PR.
  • Work with a copy of the original table, so that  the copy is modified and not the original table, when component coordinate columns are written. The modified copy of the table is written to a file, while the user retains access to the columns of the original table.
  • Need to have features to recognise non Spherical coordinates, like the Cartesian coordinates, and either skip them or write them as Single column string values. Add test for such other coordinates. Also for cases when coordinates are in a SkyCoord object but the frame is not Spherical.
  • Have two other templates, one for CDS in which the user fills values of optional fields manually later and another in which filling optional fields can be done from within Astropy, via a cdsdict. In separate PRs. Here too write only the required fields in the ReadMe first, like Abstract.
  • Have features for Time columns later within the original PR or much later.
  • Simplify how column format is obtained for float columns. The current manner of string formatting is too complicated. col.width value can be directly used in some cases. The Outputter class will also know the column format since it writes out the table.
  • Other minor/major edits and modifications as suggested by others.
With this PR for the MRT format table writing getting eventually merged to Astropy, the main goal of my astropy@GSoC project will be completed. The support for other extra features essentially serves as appendages to the primary task been done by this PR.
Let's see how it goes.

Oh! On another note, a few days back I received the GSoC First Evaluations payment! ๐Ÿ˜

Adious!

Comments

Popular posts from this blog

Tokyo House Hunting Guide

First of all, I am glad to know that you have decided to find a relatively long-term accommodation space in Tokyo. It’s a marvelous city and I hope you will have a fantastic time living here ~ The ideal procedure would be to lookup apartments in your desired area on these websites and then go an agency. Most apartments won’t be furnished and will have the initial surcharges and key deposit money, ~one month’s rent. The agency I used for my apartment is ABLE, and I would highly recommend it. I have a contact at ABLE Hakusan, so if you are looking for housing in Bunkyo-ku, near the universities, ping me up and I may perhaps be able to get you a bit of a discount, haha ;) Some relevant links are, https://suumo.jp/sp/ : This is the largest real-estate website in Japan, with the most number of properties listed. Most of the information is in Japanese though. https://minimini.jp/sp/ : The second most popular real-estate website in the country. Suumo is Green, while MiniMini is Red. Both of...

เคเค• เคชเคค्เคฐ เคธเค•ुเคฐा เค•े เคจाเคฎ

เคเคธा เคนो เคนी เคจเคนीं เคธเค•เคคा เค•ि เค†เคช เคŸोเค•्เคฏो เคฎें เคนो เค”เคฐ เคฆो เคฎเคนीเคจे เคชเคนเคฒे เคธे เค†เคชเค•ी เคธाเคฐी เคฆिเคจเคšเคฐ्เคฏा เคคเคฏ เคนो เค—เคˆ เคนो, เค†เคชเค•े เคจा เคœाเคจे เค•े เคธिเคฐ्เคซ़ เคฆो เค•เคฐเคฃ เคนो เคธเค•เคคे เคนैं, เคเค• : เค†เคชเค•ो เคœाเคจे เค•ी เค‡เคš्เค›ा เคจเคนीं เคนै (เคธंเคญเคตเคคः เคฏเคน), เคฏा เคซिเคฐ เคฆो : เค†เคช เค‰เคธ เคฆिเคจ เคŸोเค•्เคฏो เคฎें เคจเคนीं เคนो। เค†เคช เคœाเคชाเคจी เคฒोเค—ों เค•ी เค‡เคธ เคช्เคฐเค•ाเคฐ เค•ी เค†เคฆเคคें เคนเคฎें เคฌिเคฒเค•ुเคฒ เคญी เคชเคธंเคฆ เคจเคนीं เคนै। เคฆुเคจिเคฏा เคฎें เค•ुเค› เคนी เคšुเคจिंเคฆा เคฒोเค— เคนोंเค—े เคœो เคนเคฎเคธे เคœ़्เคฏाเคฆा เค•ाเคฎ เค•เคฐเคคे เคนोंเค—े, เค•्เคฏोंเค•ि เคธเคญी เค•े เคชाเคธ เคฌเคฐाเคฌเคฐ เค•ा เคตเค•़्เคค เคนै, เฅจเฅช เค˜ंเคŸे। เคคो เค…เค—เคฐ เคธाเคฅ เคšเคฒเคจे เค•ी เค‡เคš्เค›ा เคนै เค”เคฐ เค‰เคธ เคเค• เคฒौเคคे เคฆिเคจ เคฏा เคธเคฎเคฏ เค‡เคค्เคฏाเคฆि เค•ी เคนी เคฆिเค•़्เค•़เคค เคนै, เคคो เคซिเคฐ เคœ़ाเคนिเคฐ เคนै เคธाเคฅ เคฎिเคฒเค•เคฐ เค‰เคธे เคธुเคฒเคाเคฏा เคœा เคธเค•เคคा เคนै। เคฏूँ เคธंเคšिเคช्เคค เคฎें เคฌेเคฎเคคเคฒเคฌ เค•ा เค‰เคค्เคคเคฐ เคฆेเคจा เคฌेเคนเคฆ เคนी เค…เคชเคฎाเคจเคœเคจเค• เคนै। เคฏเคน เคนเคฎाเคฐी เคจเคœ़เคฐों เคฎें เค†เคช เคœाเคชाเคจीเคฏों เค•ी เค…เคงूเคฐी เคชเคฐเคตเคฐिเคถों เค•ा เคญी เคธूเคšเค• เคนै, เคœเคนां เค†เคชเค•ो เคฏเคน เคคो เคธिเค–ाเคฏा เคœाเคคा เคนै เค•ि เคฌाเคนเคฐी เคธुंเคฆเคฐเคคा เค”เคฐ เค—ोเคฐा เคฐंเค— เค•ैเคธे เคฒाเค, เคฎเค—เคฐ เค‡เคธ เคชเคฐ เคœ़ोเคฐ เคฆिเคฏा เคœाเคคा เค•ि เคฆोเคธ्เคค เค•ैเคธे เคฌเคจाเค เค”เคฐ เคฆोเคธ्เคคी เค•िเคธे เคจिเคญाเค। เค†เคงुเคจिเค• เคœाเคชाเคจी เคธเคฎाเคœ เค•े เค…ंเคฆเคฐूเคจी เค–ोเค–เคฒेเคชเคจ เค”เคฐ เค‡เคธเค•ी เคฆเคฐाเคฐों เคธे เคธीเคช เคฐเคนीं เค…เค•ेเคฒाเคชเคจ เค”เคฐ เคฎाเคจเคธिเค• เคคเค•เคฒीเคซ़ों เค•े เคเคนเคธाเคธों เค•ी เคœเคก़े เคถाเคฏเคฆ เคฏเคนी เค—़ैเคฐ เคธเคฎाเคœीเคชเคจ เคนोเคจा เคนै। เคšिเคฐंเคšे, เคนाเคฒ เคนी เคฎें เคนเคฎाเคฐे เค•เคฎ เคธे เค•เคฎ เคคीเคจ เคœाเคชाเคจी เคฆोเคธ्เคคों เค”เคฐ เคชเคฐिเคšिเคค...