!ozfxFAWEEDbVgXoYVA:matrix.org

Astropy general

539 Members
General discussion about astropy26 Servers

Load older messages


SenderMessageTime
21 Feb 2021
@slack_astropy_U01PFPU9G6L:openastronomy.orgEric Feigelson changed their display name from slack_astropy_U01PFPU9G6L to Eric Feigelson.18:10:58
@slack_astropy_U01PFPU9G6L:openastronomy.orgEric Feigelson set a profile picture.18:11:00
22 Feb 2021
@slack_astropy_U01BLKESP2B:openastronomy.orgmaxnoe Is there a way for specifying column dtypes when reading from test using ascii.basic format? I have files that contain integers larger than 2⁵², so are to large to be exactly representable by a float64 but also nan for missing values. fill_values=["nan", ] makes the entries masked but they are still converted to float64 13:43:18
@slack_astropy_U0LE97SBD:openastronomy.orgtomaldcroft
In reply to@slack_astropy_U01BLKESP2B:openastronomy.org
Is there a way for specifying column dtypes when reading from test using ascii.basic format? I have files that contain integers larger than 2⁵², so are to large to be exactly representable by a float64 but also nan for missing values. fill_values=["nan", ] makes the entries masked but they are still converted to float64
Yes, see: https://docs.astropy.org/en/latest/io/ascii/read.html#converters. I actually have a prototype in work to make this easier via a dtype arg (like Table) but for now converters will get you there.
13:47:17
@slack_astropy_U01BLKESP2B:openastronomy.orgmaxnoe
In reply to@slack_astropy_U0LE97SBD:openastronomy.org
Yes, see: https://docs.astropy.org/en/latest/io/ascii/read.html#converters. I actually have a prototype in work to make this easier via a dtype arg (like Table) but for now converters will get you there.
thanks!
13:47:59
@slack_astropy_U01BLKESP2B:openastronomy.orgmaxnoe
In reply to@slack_astropy_U01BLKESP2B:openastronomy.org
thanks!
After looking at this, dtype should be as simple as:
convertes={col: ascii.covert_numpy(dtype) for col, dtype in dtypes.items()}
? or am I missing something. Would be great to have!
15:14:27
@slack_astropy_U0LE97SBD:openastronomy.orgtomaldcroft
In reply to@slack_astropy_U01BLKESP2B:openastronomy.org
After looking at this, dtype should be as simple as:
convertes={col: ascii.covert_numpy(dtype) for col, dtype in dtypes.items()}
? or am I missing something. Would be great to have!
Pretty much. I forgot I already have a draft PR on this. The harder question is API, like should dtype be the same as the Table version which is a list corresponding to columns. Feel free to chime in at: https://github.com/astropy/astropy/pull/11300 !
17:48:45
@slack_astropy_U0LE97SBD:openastronomy.orgtomaldcroft
In reply toundefined
And then there is the question of whether converters should be deprecated. This is really a holdover from the predecessor asciitable from 10+ years ago. It was meant to be infinitely flexible in a way that I just wouldn't do today.
17:50:56
@slack_astropy_U01NUNNVB0D:openastronomy.orgTim-Oliver Husser joined the room.17:51:15
@slack_astropy_U0LE97SBD:openastronomy.orgtomaldcroft
In reply toundefined
(edited) ... way (even running without numpy) that ... => ... way that ...
17:51:19
@slack_astropy_U01NUNNVB0D:openastronomy.orgTim-Oliver Husser changed their display name from slack_astropy_U01NUNNVB0D to Tim-Oliver Husser.17:52:02
@slack_astropy_U01NUNNVB0D:openastronomy.orgTim-Oliver Husser set a profile picture.17:52:03
23 Feb 2021
@slack_astropy_U01NJKAHULX:openastronomy.orgStephanie Juneau joined the room.00:08:58
@slack_astropy_U01NJKAHULX:openastronomy.orgStephanie Juneau changed their display name from slack_astropy_U01NJKAHULX to Stephanie Juneau.00:11:05
@slack_astropy_U01NJKAHULX:openastronomy.orgStephanie Juneau set a profile picture.00:11:06
@slack_astropy_U01P1M18NQJ:openastronomy.orgBenne Holwerda joined the room.14:49:03
@slack_astropy_U01P1M18NQJ:openastronomy.orgBenne Holwerda changed their display name from slack_astropy_U01P1M18NQJ to Benne Holwerda.14:52:54
@slack_astropy_U01P1M18NQJ:openastronomy.orgBenne Holwerda set a profile picture.14:52:56
@slack_astropy_U01P1M18NQJ:openastronomy.orgBenne Holwerda changed their profile picture.14:52:59
24 Feb 2021
@slack_astropy_U01NH6MCDE2:openastronomy.orgAlex Bock changed their profile picture.12:06:15
25 Feb 2021
@slack_astropy_U07529085:openastronomy.orgastrofrog If anyone uses sigma clipping from astropy please feel free to review/try out https://github.com/astropy/astropy/pull/11219! 15:07:30
@slack_astropy_USA0AAHTQ:openastronomy.orgMitchell Revalski
In reply to@slack_astropy_U07529085:openastronomy.org
If anyone uses sigma clipping from astropy please feel free to review/try out https://github.com/astropy/astropy/pull/11219!
I don’t have a good dataset to test this on at the moment, but looks like a very useful and helpful feature to speed up sigma clipping! 🙂
15:13:34
@slack_astropy_U01PKHYQ76Y:openastronomy.orgKevin Healy joined the room.18:23:09
@slack_astropy_U01PKHYQ76Y:openastronomy.orgKevin Healy changed their display name from slack_astropy_U01PKHYQ76Y to Kevin Healy.18:23:46
@slack_astropy_U01PKHYQ76Y:openastronomy.orgKevin Healy set a profile picture.18:23:47
@slack_astropy_U01PKHYQ76Y:openastronomy.orgKevin Healy Hi everyone! Glad to find a support channel for Astropy. The Facebook group appears to be dead. I'm new to handling images in Python. I'm trying to follow the "Read and plot an image from a FITS file" example provided at docs.astropy.org. I successfully load several FITS images and can read the "shape" of the images. 18:37:30
@slack_astropy_U0LKESQSG:openastronomy.orgkelle
In reply to@slack_astropy_U01PKHYQ76Y:openastronomy.org
Hi everyone! Glad to find a support channel for Astropy. The Facebook group appears to be dead. I'm new to handling images in Python. I'm trying to follow the "Read and plot an image from a FITS file" example provided at docs.astropy.org. I successfully load several FITS images and can read the "shape" of the images.
Not sure which group you’re referring to but the Python Users in Astronomy FB group is quite active: https://www.facebook.com/groups/astropython/
18:39:31
@slack_astropy_U01PKHYQ76Y:openastronomy.orgKevin Healy
In reply to@slack_astropy_U0LKESQSG:openastronomy.org
Not sure which group you’re referring to but the Python Users in Astronomy FB group is quite active: https://www.facebook.com/groups/astropython/
My search on Facebook a moment ago produced a result which showed the last post was Dec 2020. I see the current discussion now by following your link. Thanks, Kelle.
18:42:54
@slack_astropy_U01PKHYQ76Y:openastronomy.orgKevin Healy changed their profile picture.18:44:22
26 Feb 2021
@newtwen:matrix.orgnewtwen joined the room.11:26:03

There are no newer messages yet.


Back to Room List