Skip to content

Instantly share code, notes, and snippets.

@yakir12
Created June 4, 2019 12:21
Show Gist options
  • Save yakir12/982f7e6f178f64bff47d01efab0d4ca6 to your computer and use it in GitHub Desktop.
Save yakir12/982f7e6f178f64bff47d01efab0d4ca6 to your computer and use it in GitHub Desktop.
using DataDeps, JuliaDB
register(DataDep("MWEdata", "The data needed for the MWE", "https://s3.eu-central-1.amazonaws.com/vision-group-file-sharing/Fun%20Stuff/cm.jldb", "5c19286fb4b39cddbc43708c98dc77a0766541b82cb1e462bc286286373ec813"))
cm = load(joinpath(datadep"MWEdata", "cm.jldb"))
cmg = groupby((coord = identity,), cm, :interval)
cmg[6].coord.t .-= cmg[6].coord.t[1] # ERROR: ReadOnlyMemoryError()
@JeffreySarnoff
Copy link

you are trying to assign into a view and views are ReadOnly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment