Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pystxm operations #1

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open

add pystxm operations #1

wants to merge 38 commits into from

Conversation

JulReinhardt
Copy link
Contributor

@JulReinhardt JulReinhardt commented Jun 26, 2020

Basic operation/workflow example for discussion

  • will we put the GUIPlugin in init.py or and extra SpectralPlugin.py?
  • can there be multiple workflows, e.g. STXM, ARPES, PEEM, ...? How is that implemented?
  • if no links between operations are defined, can they still be activated in the workfloweditor?

@JulReinhardt JulReinhardt changed the title following examplePlugin add pystxm operations Aug 27, 2020
setup.py Outdated Show resolved Hide resolved
@@ -66,6 +66,7 @@ def ingest_cxi(paths):
sorted_entry_list = sorted(h5_entry_dict.items(), key=lambda item: item[1])
# TODO check if energies are "continuous" or have interruptions
# the removal of last for entries is only temporary due to the example dataset
# FIXME what to do if some energies are 'out of range'?
Copy link
Contributor

Choose a reason for hiding this comment

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

refer to nx tycho to see if we can put these reference energies in a different field (may have to extend the spec)

Copy link
Contributor

Choose a reason for hiding this comment

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

heuristics, or acquisition-side definition of the reference energies
(just writing these comments for later notes - fine to keep this in for now)

@@ -42,10 +44,16 @@ def __init__(self):
super(SpectralBase, self).__init__()

def treatment_kwargs(self, workflow):
intent_name = ['hyperspectral_data', 'ptychography data', 'IR maps']
Copy link
Contributor

Choose a reason for hiding this comment

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

@ronpandolfi what's the best way to attribute scientific meaning through intents?

self.add_operation(denoise)
self.add_operation(calc_OD)
self.add_operation(lstsq_fit)
# self.auto_connect_all()
#connect one operation's output with another operation's input
# self.add_link()

Copy link
Contributor

Choose a reason for hiding this comment

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

Add connections, move to Xi-CAM.STXM

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.

3 participants