profile
viewpoint
Nicolas Cedilnik truenicoco Inria https://www.nicoco.fr PhD student at Inria's Epione research group working on cardiac electrophysiology modelling.

truenicoco/algo-prog-R 0

Cours : Algorithmique & Programmation avec R

truenicoco/deuces 0

A pure Python poker hand evaluation library

truenicoco/gitlab-webhook-handler 0

A very simple Gitlab post-receive web hook handler.

truenicoco/ImageDownloader 0

Downloads encrypted images from HTTP Host

truenicoco/PyACVD 0

Python implementation of surface mesh resampling algorithm ACVD

truenicoco/pycma 0

Python implementation of CMA-ES

truenicoco/pyvista 0

3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK)

truenicoco/spectrum2 0

Spectrum 2 IM transports

truenicoco/vtk-feedstock 0

A conda-smithy repository for vtk.

issue commentpyvista/pyvista-support

How to set opacity independently of visualized scalars?

Thanks (again) for your reply.

Opacity-where-it-should-be-opaque was fixed by downgrading VTK to v8.

About the RuntimeError, it happened because:

  1. I was using a tetrahedral mesh
  2. Instead of passing a str as opacity, I was using opacity=mesh.point_arrays['opacity']. I think this caused the "colors scalars" to be cell data and "opacity scalars" to be point data, though I did not manage to track down what was happening exactly.

Getting back to what I was trying to achieve, I'm still not there. I cannot share the mesh for legal reasons, but I guess a screenshot's OK.

The left part is supposed to be uniformly transparent here:

image

It seems that some tetrahedra (or triangles?) remain opaque.

And something worse happen from a different point of view:

image

Here the transparent part is between the camera and the opaque part. Transparency, instead of allowing to see the color scalars on the opaque part (which is my motivation for this), seems to make the opaque part weirdly transparent too.

I don't know if depth peeling or other parameters that I don't really understand must be tuned to achieve what I need…

truenicoco

comment created time in 2 days

issue commentpyvista/pyvista-support

How to set opacity independently of visualized scalars?

In my real-use case, I am in fact calling plotter.add_mesh. You patch has the same bogus behaviour (transparency on parts that are supposed to be opaque), but also crashes when using smooth_shading=True, throwing a RuntimeError: Transfer function cannot have more values than n_colors.

truenicoco

comment created time in 3 days

issue commentpyvista/pyvista-support

How to set opacity independently of visualized scalars?

Wow, thanks for the reactivity on the week-end. :)

I tried your patch and it does indeed fix both problems in my case… but introduced a new one. The half part of the ellipsoid that is supposed to be opaque is slightly transparent now. I also noticed this happening when trying to pass a n_points×4 array representing RGBA colors as scalars and using rgb=True. It seems that whenever one part of the mesh is not opaque, no part can be completely opaque. I am wondering if this is a VTK limitation.

truenicoco

comment created time in 3 days

issue openedpyvista/pyvista-support

How to set opacity independantly of visualised scalars?

Let's say I would like to represent half of an ellipsoid as transparent, for instance its points which x coordinates is above zero. Here is the closest I could get.

import numpy as np
import pyvista as pv

ellipsoid = pv.ParametricEllipsoid(10, 5, 5)
ellipsoid.point_arrays["color"] = np.linspace(0,10,len(ellipsoid.points))
ellipsoid.point_arrays["opacity"] = np.where(ellipsoid.points[:, 0] > 0, 0.5, 1)

ellipsoid.plot(scalars="color", n_colors=5, opacity="opacity")

image

There are two problems here:

  1. Instead of having the opacity set to 0.5 in the half ellipsoid, it is actually set to zero. Instead of having the opacity set to 1 in the other half, it seems to be 0.5. Browsing the source code, I believe this is because the opacity array is in fact normalized before being used. Can I circumvent this?
  2. While the n_colors argument is not completely ignored (see the color bar), it does not seem to be used on the mesh.

Is there a way to achieve what I want to do? Do I need to use the rgb argument of the the plotter.add_mesh method or is there something more convenient?

created time in 4 days

startedPatrixe/zotero-scihub

started time in a month

issue commentpyvista/pyvista

update_scalars does not work with UnstructuredGrid when smooth_shading=True

It had been a while since I haven't needed this, but I just noticed that updating scalars with smooth shading seems to work now. Thanks guys, you rock!

However, updating scalars on clipped meshes still does not work, so maybe it needs a new issue now? Or maybe rename this one?

truenicoco

comment created time in a month

issue commentjellyfin/jellyfin-kodi

Cannot choose audio or subtitle track when transcoding video

You're right! Sorry for doubting you. It is just counter intuitive than even with this option set to disabled, one can still choose audio/subs when no transcoding occurs.

truenicoco

comment created time in 2 months

issue commentjellyfin/jellyfin-kodi

Cannot choose audio or subtitle track when transcoding video

@Ashyni I don't find such options in Jellyfin settings. Are you sure this is what cause my issue? Audio/sub selection works:

  • in kodi without transcoding
  • in jellyfin web client with or without transcoding

So this makes me think the problem is on the kodi add-on side… but I might be wrong.

truenicoco

comment created time in 2 months

issue closedregseb/castkodi

Cannot use IPv6 to connect to kodi

My kodi box is only reachable via IPv6 for obscure networking reasons. Anyway, the chorus web interface works fine in firefox by typing http://[the:freaking:ip:v6:address]:8080 but Cast to Kodi reports that "this address is not valid or remote control is not activated". Both are lies.

closed time in 2 months

truenicoco

issue commentregseb/castkodi

Cannot use IPv6 to connect to kodi

My bad, the plain ipv6 address, no suffix or port, just works...

truenicoco

comment created time in 2 months

issue openedregseb/castkodi

Cannot use IPv6 to connect to kodi

My kodi box is only reachable via IPv6 for obscure networking reasons. Anyway, the chorus web interface works fine in firefox by typing http://[the:freaking:ip:v6:address]:8080 but Cast to Kodi reports that "this address is not valid or remote control is not activated". Both are lies.

created time in 2 months

issue openedjellyfin/jellyfin-kodi

Cannot choose audio or subtitle track when transcoding video

Describe the bug Without transcoding, I can properly choose between audio and subtitles tracks from the kodi interface. However, when activating transcoding, only one (the first I guess) audio track is available. And there is no subtitle available.

To Reproduce

  1. In settings, activate transcoding for HEVC (needed for my raspberry pi 3)
  2. Launch a HEVC movie
  3. Go to audio and subtitles options
  4. See that there is no choice

Expected behavior It should offer the different audio tracks and subtitles, as the web client does, even when transcoding is on.

Logs Kodi logs Jellyfin-ffmpeg logs

System (please complete the following information):

  • Jellyfin Version: 10.6.2 on debian buster x86, from the jellyfin repo
  • Kodi Version: 18.7 on raspbian, raspberry pi 3
  • Addon Version: 0.5.8
  • Playback Mode: Add-On

created time in 2 months

startedSpectrumIM/spectrum2

started time in 2 months

created tagtruenicoco/hh-creator

taguntagged-27b389023205598a343b

created time in 2 months

release truenicoco/hh-creator

untagged-27b389023205598a343b

released time in 2 months

push eventtruenicoco/hh-creator

Nicolas Cedilnik

commit sha 9141fe0ac8febcbbff64504037d7309817d61038

Save 'use OpenGL' to config when app exits

view details

push time in 2 months

created tagtruenicoco/hh-creator

taguntagged-64814c569b8e8d72a1a6

created time in 2 months

release truenicoco/hh-creator

untagged-64814c569b8e8d72a1a6

released time in 2 months

push eventtruenicoco/hh-creator

Nicolas Cedilnik

commit sha 7a00f59d1a44c65ed1170ed5f2e36c02d0b73e89

Second attempt to fix 'Failed to execute script pyi_rth_pkgres' on windows

view details

push time in 2 months

push eventtruenicoco/hh-creator

Nicolas Cedilnik

commit sha aa9b34e55246289b80329316a725bf4a416914f3

Attempt to fix 'Failed to execute script pyi_rth_pkgres' on windows

view details

push time in 2 months

created tagtruenicoco/hh-creator

taguntagged-d179b1d284bfd43926cc

created time in 2 months

release truenicoco/hh-creator

untagged-d179b1d284bfd43926cc

released time in 2 months

push eventtruenicoco/hh-creator

Nicolas Cedilnik

commit sha 4a9bf226023837fbe01bf84ab9ebb97158a8853b

Fixes #6

view details

push time in 2 months

issue closedtruenicoco/hh-creator

Pot Total qui prend trop de place

Le pot total déborde de la case: https://i.imgur.com/lJzd8jW.jpg

D'ailleurs j'avais pas fait attention, mais c'est un peu trop gros niveau texte "même si ça ne débordait pas", c'est une info qu'on a envie de voir en un peu plus petit. Je dirai qu'il faudrait baisser la police de de genre 33% minimum (ainsi que celle du "Pot" en bas aussi du coup)

closed time in 2 months

Pe4nutsss

created tagtruenicoco/hh-creator

taguntagged-cb9af19b3ad4bf5165be

created time in 2 months

release truenicoco/hh-creator

untagged-cb9af19b3ad4bf5165be

released time in 2 months

push eventtruenicoco/hh-creator

Nicolas Cedilnik

commit sha 03d879332c394939969977c7412fa4c7751918ef

Fixes #7

view details

push time in 2 months

issue closedtruenicoco/hh-creator

Ajouter des séparations ou virgules pour les stacks

Y a pas de virgule ou séparation sur les gros montants, là exemple avec une main de MTT: https://i.imgur.com/Y36bXyV.jpg . Winamax séparent à l'européenne, avec un espace tous les 3 chiffres, classique quoi: https://i.imgur.com/gOEi1Pp.png .

Voilà! :)

closed time in 2 months

Pe4nutsss

startedivakyb/fish_ssh_agent

started time in 2 months

issue commentSpectrumIM/spectrum2

Facebook group chats are broken

I would love to be able to answer, unfortunately because of this issue, I haven't been able to use spectrum2 with facebook for a while.

More precisely, I used to be able to use it for a few hours/days once in a while, but cannot even try anymore since this ultimately led to my facebook account being locked. I haven't been able to unlock it for a few weeks now, apparently due to some bug in Facebook account unlocking process.

truenicoco

comment created time in 3 months

startedpatrickm32/proton-ge-custom-updater

started time in 3 months

startedobynio/certbot-plugin-gandi

started time in 3 months

more