Yu wrote:
>
> On Mon, Oct 31, 2016 at 6:34 PM, Ian Butterworth
> <i.r.but...@gmail.com > wrote:
> > I'm not sure of the etiquette, but I'm cross-posting this from
> stackoverflow
> > as it seems like quite a significant issue...
> >
> > As an e
I'm not sure of the etiquette, but I'm cross-posting this from
stackoverflow as it seems like quite a significant issue...
As an example:
x = rand(10,10,100,4,4,1000) #Dummy array
tic()
r = squeeze(mean(x[:,:,1:80,:,:,56:800],(1,2,3,4,5)),(1,2,3,4,5))
toc()
Julia 0.5.0 -> elapsed time:
I current use Calendar.jl to convert a datetime that contains AM/PM to the
datetime type like this:
datetime_string = "2015-08-12 12:01:23 PM"
timeout = unix2datetime(Calendar.parse(datetime_string, timein).millis/1000)
I'd like to do it without calendar.jl if possible.
Any ideas?
Sorry, error in example. Should read:
datetime_string = "2015-08-12 12:01:23 PM"
timeout = unix2datetime(Calendar.parse("-MM-dd hh:mm:ss aa",
datetime_string).millis/1000)
On Tuesday, 8 September 2015 17:27:25 UTC-4, Ian Butterworth wrote:
>
> I current
Thanks for the tip, although I'm getting an error with your code in
0.4.0-dev
Any idea why?
using Base.Dates
ds = "2015-08-12 12:01:23 PM"
DateTime(ds, DateFormat("-mm-dd HH:MM:SS")) - (contains(ds, "AM") ? Hour
(12) : Hour(0))
LoadError: ArgumentError: Non-digit character encountered
Ok. I'm running 0.4.0-dev on juliabox
I managed to make it work by removing the last 3 characters from the input
string, and using single format characters.
Also caught a bug that occurs when the hour in the string = 12, and it's
PM. I believe that hour was incorrectly being shifted.. but
Today I started getting an error on juliabox that only occurs in 0.3.11. I
posted this to the 'Requests' github, but I thought it may not actually be
the source of the issue. Can anyone shed any light?
If you run this:
resp = get(http://httpbin.org/get;)
object =
Thanks guys. I ended up using Kaj's approach. Functionality like we
discussed would be good if possible.
On Saturday, 15 August 2015 06:16:09 UTC-4, Jeffrey Sarnoff wrote:
What would like two lines of code to do with durations?
On Friday, August 14, 2015 at 7:41:04 PM UTC-4, Ian Butterworth
)
A = 3
On Friday, August 14, 2015 at 12:07:28 PM UTC-4, Ian Butterworth wrote:
I have a dict containing both key+value pairs, and key+[array of dict]
pairs.
Can I use filter! to remove the entire parent dict if condition in child
is met?
i.e.
If measurements[uniqueentrykey][studyid
Trying to get the number of hours between these two dates (ideally x hours
and y minutes), but can't figure out how to convert the duration variable
into hours. The bottom line currently errors
timein = 2015/8/13 10:19:50
timein2 = 2015/8/14 13:12:34
time_series[1] = DateTime(timein,/mm/dd
like this:
Dates.Hour(time_series[2]) - Dates.Hour(time_series[1])
Here's to a Good Evening
On Friday, August 14, 2015 at 7:41:04 PM UTC-4, Ian Butterworth wrote:
Trying to get the number of hours between these two dates (ideally x
hours and y minutes), but can't figure out how
I have a dict containing both key+value pairs, and key+[array of dict]
pairs.
Can I use filter! to remove the entire parent dict if condition in child is
met?
i.e.
If measurements[uniqueentrykey][studyid] == bad study then remove
measurements[uniqueentrykey]
Thanks
How can I add a dict with 2 different field types (1D array of float and
float) to an array nested in a dict that already exists?
The 'allmeas' structure already exists up to this point:
allmeas[measkey][manreps][num_manrep]
And I'm trying to add like this:
13 matches
Mail list logo