strawlab / flydra

live, low-latency markerless multi-camera 3D animal tracking system
Apache License 2.0
58 stars 18 forks source link

'PST' timezone not recognized by pytz #16

Closed florisvb closed 11 years ago

florisvb commented 12 years ago

The h5 file seems to have have 'PST' as the timezone for me, but this is not recognized by pytz. Instead, use 'US/Pacific', which does work? This is more of a bug with pytz ('EST' and 'MST' both work, so 'PST' should), but perhaps we should be robust to that?

astraw commented 11 years ago

Did you ever get further with this? I'm tempted to call it a bug with pytz and out-of-scope for flydra.

florisvb commented 11 years ago

I just "fixed" it by using 'US/Pacific' and moved on. Yes, it is a bug with pytz.

fieldbio commented 11 years ago

I'm actually still having some problems with this. I've set the timezone to 'US/Pacific' using 'dpkg-reconfigure tzdata' but pytz still reads the timezone as PST. Am I setting the timezone in the wrong place?

Paolo

On 06/03/2013 01:20 PM, Floris van Breugel wrote:

I just "fixed" it by using 'US/Pacific' and moved on. Yes, it is a bug with pytz.

— Reply to this email directly or view it on GitHub https://github.com/strawlab/flydra/issues/16#issuecomment-18868258.

florisvb commented 11 years ago

I'm pretty sure the only change I made was to add this line to result_utils.py:

DEFAULT_TZ = 'US/Pacific'

right after import pytz

On Tue, Jun 4, 2013 at 4:32 PM, fieldbio notifications@github.com wrote:

I'm actually still having some problems with this. I've set the timezone to 'US/Pacific' using 'dpkg-reconfigure tzdata' but pytz still reads the timezone as PST. Am I setting the timezone in the wrong place?

Paolo

On 06/03/2013 01:20 PM, Floris van Breugel wrote:

I just "fixed" it by using 'US/Pacific' and moved on. Yes, it is a bug with pytz.

— Reply to this email directly or view it on GitHub https://github.com/strawlab/flydra/issues/16#issuecomment-18868258.

— Reply to this email directly or view it on GitHubhttps://github.com/strawlab/flydra/issues/16#issuecomment-18946469 .

Floris van Breugel PhD Candidate at Caltech Control and Dynamical Systems (925) 963 8280

Wildlife and Landscape Photographer Galleries: http://www.ArtInNaturePhotography.com/ Blog: http://www.ArtInNaturePhotography.com/wordpress/

fieldbio commented 11 years ago

Thanks. I have that line in result_utils.py but it still has this error. I changed mainbrain to use 'US/Pacific' for the h5s - not ideal but it seems to work.