Develop `Context` class in context.py
Ein zugehöriger Pull Request wurde bereits gemerged.
- #34 von @ubdbra001 — gemerged
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginne in context.py und vergleiche die vorgeschlagene Context-Oberfläche mit der Dokumentation des Context-Protokolls; verfolge anschließend Dataset und FileParts für die bereits identifizierten Werte. Bestätige den verbleibenden Umfang für associations, ome und tiff sowie, wie ihre zugehörigen Klassen dargestellt werden sollten; abgeschlossen bedeutet, dass Context das Protokoll abdeckt und die aufgeführten Dateimetadaten bereitstellt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
The Context class needs to be added, and functionality needs to be developed.
It should reflect the protocols listed here
This class reflects the context for an individual file in a dataset, and so should be instantiated with path to the file in question and the Dataset object for that file.
Functionality that needs to be added:
-
schema: Can be accessed fromDatasetobject -
dataset: Passed on creation -
subject: From entities? Need to developSubjectclass? -
path: Generated in theFilePartsobject -
size:os.path.getsize()? -
entities: Generated in theFilePartsobject -
datatype: Generated in theFilePartsobject -
suffix: Generated in theFilePartsobject -
extension: Generated in theFilePartsobject -
modality: From datatype? -
sidecar: Needs to useload_sidecarand `walk_back'? -
associations: Need to developAssociationsclass -
columns: If the current file has.tsvextesion then parse? What to use to parse? -
json: If current file has.jsonextension then parse usingJSONmodule? -
gzip: Python has in-builtgzipmodule, not sure how to read the header specifically. Need to developGZipclass? -
nifti_header: Need to developNiftiHeaderclass. Can usenibabelfor most of this, will likely need guidance. -
ome: Need to developOmeclass. Never heard of OME before, so will need guidance. -
tiff: Need to developTiffclass
I'll start work on the parts that don't require additional classes, but as suggested I'll create stubs for everything else.
@effigies does this look broadly correct?
- Vorherrschende Sprache
- Python
- Sterne
- 10
- Forks
- 7
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus bids-standard/python-validator
-
Add a structured issues model and emit findings from the filename validatorEvtl. vergeben @karellopez hat das vor 81 Tagen übernommen. Offenenhancement
bids-standard/python-validator#85 · 1 Kommentar · 1 zugewiesene Person ·
-
Populate associations contextEvtl. wieder frei @ubdbra001 hat das vor 115 Tagen übernommen, und es ist kein Pull Request offen. Offen
bids-standard/python-validator#82 · 1 Kommentar · 1 zugewiesene Person ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
-
performance
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
-
Validate DerivativesEvtl. vergeben @bendhouseart hat das vor 298 Tagen übernommen. Offenenhancement
bids-standard/python-validator#62 · 1 zugewiesene Person ·
Alle Issues in bids-standard/python-validator
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
vllm-project/vllm#64845 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
dekobon/big-code-analysis#1729 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
pydantic/pydantic-ai#12091 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100