-
Notifications
You must be signed in to change notification settings - Fork 13
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 a new field #207
Comments
Your field is not required so it should not be defined in the required fields. However I think you may need to write the units of your field here: https://github.com/SWIFTSIM/swiftsimio/blob/master/swiftsimio/metadata/unit/unit_fields.py |
Still not working..., even after adding the field in particle_fields.py and unit_fields.py and cosmology_fields.py By the way, also, if I define:
the corresponding field is not added to the hdf5... so, something seems missing. You can check in the new branch I pushed: |
You must set those equal to unyt arrays and not integers. |
Still not working... here is the script : see the line
|
@JBorrow any thoughts on the above? |
I need to add a new filed to the stars : StellarParticleType(hdf5) : stellar_particle_type(swiftsimio).
I added the field in:
particle_fields.py
as well as in:
required_fields.py
stars = {
"smoothing_length": "SmoothingLength",
"stellar_particle_type": "StellarParticleType",
**shared,
}
but when defining for example:
got:
so, something is missing... any help welcome.
The text was updated successfully, but these errors were encountered: