Skip to content

create fileEMDVeloxWithSpectra & update fileEMDVelox's metadata extraction#82

Open
ccatherinetan wants to merge 8 commits intoercius:mainfrom
MolecularFoundry:filEMDVeloxUpdate
Open

create fileEMDVeloxWithSpectra & update fileEMDVelox's metadata extraction#82
ccatherinetan wants to merge 8 commits intoercius:mainfrom
MolecularFoundry:filEMDVeloxUpdate

Conversation

@ccatherinetan
Copy link
Copy Markdown

@ccatherinetan ccatherinetan commented Mar 4, 2026

updates to the fileEMDVelox class:

  • in getMetadata: include everything in metaDataJSON except for keys_to_ignore ('EnergyFilter', 'Vacuum', 'GasInjectionSystems')
    • whereas, previously only useful_keys ('Optics', 'Stage', 'Scan', 'BinaryResult' ) were kept.

creates new class fileEMDVeloxWithSpectra, inheriting from fileEMDVelox

  • overrides _find_groups() to include Image and Spectrum Image data in self.list_data

see most updated description here: MolecularFoundry#3

@ccatherinetan ccatherinetan changed the title updates fileEMDVelox's metadata extraction create fileEMDVeloxWithSpectra & update fileEMDVelox's metadata extraction Mar 4, 2026
Comment thread ncempy/io/emdVelox.py
import numpy as np
import h5py

def parse_dataset_as_dict(dataset):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a docstring comment as to what this does?

Comment thread ncempy/io/emdVelox.py Outdated
@ercius
Copy link
Copy Markdown
Owner

ercius commented Apr 7, 2026

Have you run the tests for ncempy yet? We need to make sure this does not break anything. It would also be great to add some tests.

@ccatherinetan
Copy link
Copy Markdown
Author

Have you run the tests for ncempy yet? We need to make sure this does not break anything. It would also be great to add some tests.

Sorry, I've been a bit busy this past week; I'll try to get to that tonight / tomorrow!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants