On Tue, Jul 12, 2016 at 10:56 AM, Fred <[email protected]> wrote:
> Hi,
>
> I have a this kind of data structure :
>
> type Ions_frag{}
>   mz::Float64
>   intensity::Float64
>   charge::Int64
> end
>
>
> I read in performance tips that it is better to define the type of the data

Which one are you referring to?

> structure but I cannot find the good one for my data structure. I tried :
>
> type Ions_frag{DataType}
>   mz::Float64
>   intensity::Float64
>   charge::Int64
> end
>

The one you have is a perfectly fine type. I'm not sure what do you
want to achieve.

>
> but it gives this error :
>
> This may have arisen from a call to the constructor
> Ions_frag{DataType}(...),
> since type constructors fall back to convert methods.
> Closest candidates are:
>   call{T}(::Type{T}, ::Any)
>   convert{T}(::Type{T}, !Matched::T)
>
>
> Thank you for your comments !

Reply via email to