Skip to content

Commit

Permalink
Merge pull request #1 from apdavison/gm-master-fixes
Browse files Browse the repository at this point in the history
fix a couple of problems
  • Loading branch information
GMattheisen authored Apr 21, 2020
2 parents 8cde1e5 + bc253dd commit e820eb1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fairgraph/electrophysiology.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ class MEGExperiment(KGObject):
Field("protocol", Protocol, "hadProtocol")
)


def __init__(self, name, device=None, task=None, sensors=None, digitized_head_points_coordinates=None, head_localization_coils_coordinates=None, digitized_head_points= False, digitized_landmarks = False, start_time=None, end_time=None, people=None, id=None, instance=None):
args = locals()
args.pop("self")
Expand Down Expand Up @@ -1292,6 +1293,17 @@ class ExtracellularElectrodeExperiment(PatchClampExperiment):
_path = "/electrophysiology/stimulusexperiment/v0.3.0"
type = ["nsg:StimulusExperiment", "prov:Activity"]
recorded_cell_class = "ImplantedBrainTissue"
context = {
"schema": "http://schema.org/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"nsg": "https://bbp-nexus.epfl.ch/vocabs/bbp/neurosciencegraph/core/v0.1.0/",
"name": "schema:name",
"prov": "http://www.w3.org/ns/prov#",
"used": "prov:used",
"stimulus_type": "nsg:stimulusType",
"wasGeneratedBy": "prov:wasGeneratedBy"
}

fields = (
Field("name", basestring, "name", required=True),
Field("recorded_cell", ImplantedBrainTissue, "prov:used",
Expand Down
1 change: 1 addition & 0 deletions fairgraph/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"version": "schema:version",
"generatedAtTime": "prov:generatedAtTime",
"isPartOf": "nsg:isPartOf", # not sure about prefix,
"partOf": "nsg:partOf",
"parameters": "nsg:parameters",
"morphology": "nsg:morphology",
"eModel": "nsg:eModel",
Expand Down

0 comments on commit e820eb1

Please sign in to comment.