Skip to content

let attune.open work with urls #185

Description

@ddkohler

My specific attempt was via a file stored on OSF. The following:

instr = attune.open(r"https://osf.io/6s7gk/download")

currently does not work (OSError).

Using requests.get works

instr = attune.Instrument(**requests.get("https://osf.io/6s7gk/download").json())

solution block might be something like:

try:
   [normal path opening stuff]
except OSError as e:
   return requests.get(r"https://osf.io/6s7gk/download").json()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions