qyx268 / astrodatapy

To collect astronomical data from both observational and modelling campaigns.
http://astrodatapy.readthedocs.io
13 stars 3 forks source link

Data Labels #4

Closed madelinemarshall closed 6 years ago

madelinemarshall commented 6 years ago

Is it possible to print out data labels as "AuthorName et al. (Date)" or even "AuthorName (Date)" instead of AuthorNameDate?

qyx268 commented 6 years ago

This feature is not included. But you can do [label[:label.rfind('20')]+'et al. ('+label[label.rfind('20'):]+')' for label in labels]

madelinemarshall commented 6 years ago

Perfect, that's exactly what I was after. Thanks!