-
Notifications
You must be signed in to change notification settings - Fork 8
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
using readonly instead of user_editability; enabling injesting multip… #486
base: master
Are you sure you want to change the base?
Conversation
…le methods to the base classes and not only the normalization; Entry to inherit also from Task, so Workflow click drives there directly
…sation from Measurement and Activity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should definitely also think how we can keep this clean and maintainable in the future. Maybe we can separate the actual schema creation a bit from the definition of new base section classes and normalization functions (i.e, move these to a new python file in the future)
@@ -105,8 +106,8 @@ | |||
"NXsample": [CompositeSystem], | |||
"NXsample_component": [Component], | |||
"NXidentifier": [EntityReference], | |||
"NXentry": [ActivityStep], | |||
"NXprocess": [ActivityStep], | |||
"NXentry": [ActivityStep], # , Task], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment here if not used
) | ||
# one could also copy local ids to identifier for search purposes | ||
super(current_cls, self).normalize(archive, logger) | ||
|
||
|
||
# def to_task_itself(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove if not needed
if archive.results.eln.methods is None: | ||
archive.results.eln.methods = [] | ||
if self.method: | ||
archive.results.eln.methods.append(self.method) | ||
else: | ||
archive.results.eln.methods.append(self.m_def.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually want to fill the results.eln.methods
section? Is that needed in any way? If not, I suggest we remove it here.
@@ -105,8 +106,8 @@ | |||
"NXsample": [CompositeSystem], | |||
"NXsample_component": [Component], | |||
"NXidentifier": [EntityReference], | |||
"NXentry": [ActivityStep], | |||
"NXprocess": [ActivityStep], | |||
"NXentry": [ActivityStep], # , Task], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should eventually becomes its own workflow (nested in the workflow of the whole nxs file) containing its own Tasks. But fine for now
…le methods to the base classes and not only the normalization; Entry to inherit also from Task, so Workflow click drives there directly