-
Notifications
You must be signed in to change notification settings - Fork 1
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
122 move the transmission code from areaa repo #123
122 move the transmission code from areaa repo #123
Conversation
0484c6b
to
acc30ac
Compare
8a45a55
to
e4d4337
Compare
Moved some IKZ specific stuff into the |
598ca03
to
8f9143f
Compare
I have added the current version of the transmission plugin that was presented to the Area A TF on December 2, 2024. Some feedback from the discussions related to the refactoring of the quantities in |
TODO
|
8460239
to
cbfbf56
Compare
cbfbf56
to
2b317b3
Compare
@hampusnasstrom @aalbino2 Finally ready for your reviews! :) |
Reviewer's Guide by SourceryThis pull request moves the transmission code from the Area A repository to the Class diagram for the Transmission Spectrophotometry data modelclassDiagram
class Measurement {
<<abstract>>
}
class UVVisNirTransmission {
+str user
+str method
+TransmissionSampleReference[] samples
+UVVisNirTransmissionResult[] results
+UVVisNirTransmissionSettings transmission_settings
}
class UVVisNirTransmissionResult {
+float[] transmittance
+float[] absorbance
+float[] wavelength
+generate_plots()
}
class TransmissionSampleReference {
+CompositeSystem reference
+float geometric_path_length
+float optical_path_length
}
class UVVisNirTransmissionSettings {
+str sample_beam_position
+float common_beam_mask
+bool common_beam_depolarizer
+str detector_module
+LampSettings[] light_sources
+AttenuatorSettings attenuator
+MonochromatorSettings[] monochromators
+MonochromatorSlitWidth[] monochromator_slit_width
+DetectorSettings[] detectors
+DetectorGain[] detector_gain
+DetectorIntegrationTime[] detector_integration_time
+Accessory[] accessories
}
Measurement <|-- UVVisNirTransmission
UVVisNirTransmission *-- TransmissionSampleReference
UVVisNirTransmission *-- UVVisNirTransmissionResult
UVVisNirTransmission *-- UVVisNirTransmissionSettings
Class diagram for the Transmission Spectrophotometry instrument modelclassDiagram
class Entity {
<<abstract>>
}
class Instrument {
<<abstract>>
}
class Spectrophotometer {
+str serial_number
+str software_version
+Detector[] detectors
+Lamp[] light_sources
+Monochromator[] monochromators
}
class Detector {
+str type
}
class LightSource {
+float power
}
class Lamp {
+str type
}
class Monochromator {
}
class GratingMonochromator {
+float groove_density
}
Entity <|-- Detector
Entity <|-- LightSource
LightSource <|-- Lamp
Entity <|-- Monochromator
Monochromator <|-- GratingMonochromator
Instrument <|-- Spectrophotometer
Spectrophotometer *-- Detector
Spectrophotometer *-- Lamp
Spectrophotometer *-- Monochromator
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @ka-sarthak - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟡 Testing: 2 issues found
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
as commented this morning:
- need for a mechanism to be able so subclass this plugin
additionally:
- modify the toml of ikz-plugin and ikz-oasis!!
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.
Looks good! Maybe just add a short description on what files the parser can currently parse. Then you can merge from my side.
A plugin for Transmission Spectrophotometry has been developed in collaboration with IKZ (Hiroki Tanaka) in the last few months. It is currently available in the Area A modeling repo here: https://github.com/FAIRmat-NFDI/AreaA-data_modeling_and_schemas/tree/main/transmission/transmission_plugin
This PR aims to add this plugin as a module of
nomad-measurements
. To this end, the following steps are required:src/nomad_measurements/transmission
fairmat-readers-transmission
https://github.com/FAIRmat-NFDI/readers-transmission/CompositeSystem
for sample reference. This can be specialized in IKZ plugin for sample classes coming from specific growth techniques.Some integration steps concerning this plugin moved to a separate issue #151
Summary by Sourcery
Move the transmission code from the Area A repository to the nomad-measurements repository.
New Features:
Tests: