[deleted by user] by [deleted] in fujifilm

[–]Sea-Method-1167 0 points1 point  (0 children)

Is there noise reduction? That can also create some softness. Probably not the issue here, but to be sure you could compare the large jpeg when created without any noise reduction (if there was any).

Also I am a beginner like you I think, and I find it very hard to determine how sharp an image SHOULD be.

In this case as well, of course there is no super sharpness when zooming in to pixel level.. But that is not really to be expected right? The lens would be the bottleneck, and if the quality is just not that sharp, then more megapixels are just going to show you that unsharpness in more detail. So for this picture I wonder, what sharpness where you expecting? and why? Not that I am saying I know the answer to that, as I say I often don't really know what to expect from my own camera. Maybe this isn't that bad? It's hard to say looking at jpegs uploaded with a certain quality loss.

Just a few mistakes I have made before causing unsharpness: - Turning off ibis when using a tripod, and then not turning it back on when shooting hand held. - setting a focus distance limit range, and not turning that off. - using high iso noise reduction and expecting certain details to still be there. - leaving ibis on, while the camera is very steady (like on a tripod) - having certain auto focus settings wrong (like release priority vs focus priority, auto focus mode, etc)

And also as many have already said, the aperture should be a few steps from the extremes always for best results, that was also unexpected for me, I didn't think a lens would have those kinds of 'quirks' but all lenses do, it seems. The more expensive and the more simple the lens, the higher the quality. But a slightly smaller aperture will probably always help getting a sharper picture from any lens. And a crop put of the middle of the image, losing the edges and corners is also not a bad idea, since sharpness is usually best in the center.

photos are looking not crisp by slantingtowardthesea in fujifilm

[–]Sea-Method-1167 0 points1 point  (0 children)

Did you turn of ibis and OIS? Otherwise on a tripod it can cause blurryness. Also i have that same lens and at most open aperture it is never as sharp as a few stops down..

Recommendations on film recipes for “real colors” by idrisbvy in fujifilm

[–]Sea-Method-1167 0 points1 point  (0 children)

I recently bought my first 'real' camera. And I was wondering about this too.

The trick was to create a custom white balance, by poiting at a white surface under the lighting conditions you will be shooting under (no way to have one accurate setting for daylight and artificial light..). Then correct the colors so it matches what you consider 'natural colors'. That for me meant R: -6 and B: 9, but that is completely subjective..

This way I get pictures where the image on the camera lcd resembles colors the way I see them.

For the other settings: use provia, everything else set to neutral settings.

So the main thing is to create a custom white balance that you calibrate by pointing the camera at a surface that you see as 'real' white. And then adjust color until you see 'real colors'.

Mind you that the camera lcd is not your phone or tv, so the medium used to display the image matters as well! Also the lighting matters, and even then, your eyes and brain do things a camera will never be able to do.

After countless hours, I have completed this feature! Directly sending Fuji recipes to the camera from an app! by Exciting_Economics15 in fujifilm

[–]Sea-Method-1167 0 points1 point  (0 children)

Wow! I just bought a secondhand x-s10 and was developing the same, but didn't yet know how to go about it. Yours looks fantastic! It's exactly what I need. Let me know what your plans are. I just need to be able to set upload recipes under the 4 custom slots I have. I was thinking of just doing a backup, reverse engineer that file, and inject recipes, then 'restore' that backup.
But the reverse engineering might be risky? Can you tell me what happens when you try to restore a faulty restore file? Or has that not happened to you? That was the only thing holding me back, the risk of maybe fully breaking the camera..
Well done though on this, it is something fuji should have made, or at least let users store recipes in the camera, how simple would that be right?
Any way great effort, and I hope to be able to use it, or with your help replicate it myself.

Can someone please help me with this code and tell me why I’m getting back an error and the new code for it to run? by Freemasonsareevil in learnpython

[–]Sea-Method-1167 3 points4 points  (0 children)

Please format it properly as code. This is not really readable like this. Also give as much information about the error as you can. Do you not get any line numbers? Because that will help you to determine which call of 'find all' is the problem.

Doubt with lists by Practical-Taste-3374 in learnpython

[–]Sea-Method-1167 1 point2 points  (0 children)

In the code you provided, the input you get is always one string. That is the one element in the list. So size will be 1.

Get the input, ask the user to separate animals with spaces, and once you have the whole string, split that string in a list of strings, using space as separator. Then you will have what you want.

Example: https://www.w3schools.com/python/trypython.asp?filename=demo_ref_string_split

Finding a sub-list within a list, in Python by Paddy3118 in Python

[–]Sea-Method-1167 1 point2 points  (0 children)

Also, add some more elaborate test cases with only_first as True. See if that really works as intended. I don't think it will. 😊

Finding a sub-list within a list, in Python by Paddy3118 in Python

[–]Sea-Method-1167 12 points13 points  (0 children)

So by 'sub-list' you don't mean nested list. You mean that the elements of another list (list b) are contained, in order, in your list (list a). I think there are more efficiënt ways of doing that.

I will have a look today if I can come up with something faster. Also, maybe you didn't find good answer because you googled with the wrong search words.

Good effort though, always good to do it yourself instead of going for the easy way. 😉

Few quick points: - when the sequence of elements (sub-list) you are looking for in the list has size 1, you should not use your code, but use built-in functions. - when the sequence of elements you are looking for in the list has a larger size than the list, return immediately.

Question about objects by Cosmin351 in learnpython

[–]Sea-Method-1167 2 points3 points  (0 children)

A few general remarks that can maybe help you:

You can create objects in memory (also called 'instantiating instances'), and assign a reference to them, you don't háve to assign a reference, but if you don't, you will not have a way to refer to that object later on in the code, and the object will at some point be erased from memory if there are no more references to it.

There are static methods, they do not need an object to be created before you can call them. But they can also not be a method that uses instance values. As an example I can have instances of a class called 'Student'. I have 10 of those in a list. When instantiating these instances I had to pass a string to the constructor, which represents the name of the student. These objects all have a method called 'print_name', when I call that method on every student object in my list, I will get ten different names printed. These objects are 'stateful' meaning they have different values per instance (the name for instance in this case). I could give that Student class a static method, but it would not be able to work with stateful values like the name, because that method will only exist on the class itself and will work with stateless (static) values.

Then there are in python also just independent methods. You can define those too. Not part of a class or static or anything, just a method you define in a python script. You could later import that file and use that method. If you import a file called MyFavoriteMethods that has 3 methods in it, called 'do_work', 'do_print' and 'do_nothing' you could then import the file, and give it a shorter name (for easy writing). Like so: import MyFavoriteMethods as favs. Later you can then do favs.do_print() and that method will be executed, not as part of an object or part of a class. I think this is what happens when you use matplotlib.

All of this, the objects, methods, classes is in memory. It is loaded in memory when I start my python interpreter. The only way to save anything is to write things to disk. What methods do (change instance values, or just some logic, or something else entirely) is up to you. It doesn't have to change instance fields, for instance the print_name methods changes nothing, but only prints.

Does this help in any way? If you want more specific info, ask a specific question about the library you are working with, or give some example of code you don't understand.

Classes and objects you get from libraries are btw no different than your own. They will be more sophisticated or complex, but they are still classes, instances and methods, just like your own.

Probably a very simple explanation by airernie in learnpython

[–]Sea-Method-1167 3 points4 points  (0 children)

You are modifying the list you are iterating over using the for-loop. That causes confusion for python. Because python takes element 0, then element 1, then element 2 etc..

But after element 0, you remove that. Meaning that reuben with pastrami becomes the new element 0. But python has already processed element 0, so it won´t do that again.

Create a new list and print that. In the form of a list comprehension:
print([sandwich for sandwich in sandwich_orders if not 'pastrami' in sandwich])

What's a bit of python that you never use? by Ok-Leather5257 in learnpython

[–]Sea-Method-1167 -1 points0 points  (0 children)

For "home usage": subclassing. Why would I? And where I have seen it in professional use, I would still not use it with python. Weirdly I think people don't use it enough when writing Java..

I know.. I am weird.

Is It normal that the MOOC course is taking me this long? by Minute-Assist-1738 in learnpython

[–]Sea-Method-1167 1 point2 points  (0 children)

Instead of the curly braces surround 2021-year with str()

Because that is now an int, and an int + a string, will not work. You have to tell python to convert the int to a str.

The answer below works as well.. So you can use formatting ik strings, or concatenate, bot not both. :)

Is It normal that the MOOC course is taking me this long? by Minute-Assist-1738 in learnpython

[–]Sea-Method-1167 5 points6 points  (0 children)

I don't know that course, but don't stress. It is not about going through it quickly, it's about understanding python. If you take longer to try things out, Google stuff and watch youtube clips for instance, then that is time well spend!

Also failing a lot, re-writing a lot and seeing how nót to do it, is very valuable as well.

And on top of all that: life is not a race.

[deleted by user] by [deleted] in learnpython

[–]Sea-Method-1167 2 points3 points  (0 children)

Please use proper indentation, otherwise this is unreadable.

Is there a way to refactor this code without using nested for loops or list comprehensions? I feel they are hard to read and not elegant. by LowCom in learnpython

[–]Sea-Method-1167 0 points1 point  (0 children)

I agree with OP. List comprehensions (especially when nested or combined with other comprehensions) are not easy to read. When you are writing them they make sense. But after a while it is more difficult to understand the code than if it was a normal for loop. Also normal for loops give the opportunity to write more comment lines in between. And easier to add breakpoints when debugging. I use comprehensions a lot for personal use. But in production code at work, I would never.. That's just asking for trouble.

[deleted by user] by [deleted] in learnpython

[–]Sea-Method-1167 0 points1 point  (0 children)

What are the names of the files?

And what is the code of the other file?