Skip to content

Conversation

@VeckoTheGecko
Copy link
Contributor

@VeckoTheGecko VeckoTheGecko commented Nov 20, 2024

Changes:

Indentation before:

<ParticleSet>
    fieldset   : <FieldSet>
    fields:
        <Field>
            name            : 'U'
            grid            : RectilinearZGrid(lon=array([ 0.00,  0.05,  0.11, ...,  0.89,  0.95,  1.00], dtype=float32), lat=array([ 0.00,  0.05,  0.11, ...,  0.89,  0.95,  1.00], dtype=float32), time=array([ 0.00]), time_origin=0, mesh='flat')
            extrapolate time: True
            time_periodic   : False
            gridindexingtype: 'nemo'
            to_write        : False
        <Field>
            name            : 'V'
            grid            : RectilinearZGrid(lon=array([ 0.00,  0.05,  0.11, ...,  0.89,  0.95,  1.00], dtype=float32), lat=array([ 0.00,  0.05,  0.11, ...,  0.89,  0.95,  1.00], dtype=float32), time=array([ 0.00]), time_origin=0, mesh='flat')
            extrapolate time: True
            time_periodic   : False
            gridindexingtype: 'nemo'
            to_write        : False
        <VectorField>
            name: 'UV'
            U: <parcels.field.Field object at 0x10562acb0>
            V: <parcels.field.Field object at 0x163543a30>
            W: None
    pclass     : <class 'parcels.particle.ScipyParticle'>
    repeatdt   : None
    # particles: 1
    particles  : [
        P[0](lon=0.000000, lat=0.000000, depth=0.000000, time=0.000000)
    ]

After:

<ParticleSet>
    fieldset   :
        <FieldSet>
            fields:
                <Field>
                    name            : 'U'
                    grid            : RectilinearZGrid(lon=array([ 0.00,  0.05,  0.11, ...,  0.89,  0.95,  1.00], dtype=float32), lat=array([ 0.00,  0.05,  0.11, ...,  0.89,  0.95,  1.00], dtype=float32), time=array([ 0.00]), time_origin=0, mesh='flat')
                    extrapolate time: True
                    time_periodic   : False
                    gridindexingtype: 'nemo'
                    to_write        : False
                <Field>
                    name            : 'V'
                    grid            : RectilinearZGrid(lon=array([ 0.00,  0.05,  0.11, ...,  0.89,  0.95,  1.00], dtype=float32), lat=array([ 0.00,  0.05,  0.11, ...,  0.89,  0.95,  1.00], dtype=float32), time=array([ 0.00]), time_origin=0, mesh='flat')
                    extrapolate time: True
                    time_periodic   : False
                    gridindexingtype: 'nemo'
                    to_write        : False
                <VectorField>
                    name: 'UV'
                    U: <parcels.field.Field object at 0x104866cb0>
                    V: <parcels.field.Field object at 0x168d11270>
                    W: None
    pclass     : <class 'parcels.particle.ScipyParticle'>
    repeatdt   : None
    # particles: 1
    particles  : [
        P[0](lon=0.000000, lat=0.000000, depth=0.000000, time=0.000000)
    ]

Copy link
Member

@erikvansebille erikvansebille left a comment

Choose a reason for hiding this comment

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

Also re-execute the parcels_tutorial.ipynb to reflect this new representation for ParticleSet in the documentation?

@VeckoTheGecko VeckoTheGecko enabled auto-merge (rebase) November 20, 2024 08:12
@VeckoTheGecko VeckoTheGecko merged commit d013cd3 into master Nov 20, 2024
12 checks passed
@VeckoTheGecko VeckoTheGecko deleted the v/small-changes branch November 20, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Improve reprs for key Parcels classes

3 participants